Creating Custom Penetrators
Custom penetrators are split into two categories: Static and Skinned.
Skinned
use Skinned Mesh Renderers. They have bones & blendshapes and can use Physbones for dynamicsStatic
use Static Mesh Renderers. They don't have bones & blendshapes and can't use Physbones for dynamics
General
Penetrators need their mesh origin to be set at their root. Their forward direction (the blue arrow in unity) should be pointing towards their tip.
- add totorial on setting origin in blender here -
Static
Requirements
- Origin at root
- Forward direction pointing towards tip
Skinned
Requirements
- Origin at root
- Forward direction pointing towards tip
- Bones pointing in forward direction
Configure Custom Penetrator
- Select the material of you penetrator
- Enable the TPS section
- Add an empty gameobject & move it to the tip of your penetrator
- Open the TPS Wizard & Scan for penetrators
- Select the empty gameobject you just created for the
Tip
field of your penetrator - Bake your penetrator
- Apply the TPS Setup