Needle Actor¶
Needle actor is an extension of the Rigidbody, but with additional properties for a needle. It can be used along with the Puncturable component to simulate needle punctures in soft deformable objects. In order to create a needle actor, you need to:
Create a NeedleActor and Assign a Physics World.
Create an empty GameObject and add a NeedleActor component to it by clicking Add Component > MAGES > Mesh Deformations > Medical > Needle Actor in the inspector
Assign a Physics World to the NeedleActor component
Configure the needle points.
Instead of using a Simulation Mesh like most of the other actor types, the Needle Actor uses a list of points to define the needle shape. Add points to the needle by clicking the ‘+’ button in the inspector and assign the transform of each point:
Based on these points a Simulation Mesh will be generated automatically.
Note
The first needle point will be used as the needle tip.
Render the needle.
To render the needle, you can add a MeshFilter and a MeshRenderer component to the GameObject and assign a mesh to the MeshFilter and a Material to the MeshRenderer.
Note
The mesh assigned to the MeshFilter should be aligned with the needle points in order for the collisions to be accurate.