class MAGES::MeshDeformations::NeedleActor¶
Overview¶
A needle actor used along with the Puncturable component for sututing simulations. More…
class NeedleActor: public MAGES::MeshDeformations::RigidbodyActor { public: // properties ListNeedlePoints; float Mass; float Damping; // methods void RebuildSimulationMesh(); };
Inherited Members¶
public:
// structs
struct UpdateKinematicParticlesJob;
// properties
PhysicsWorld PhysicsWorld;
SimulationMesh SharedSimulationMesh;
SimulationMesh SimulationMesh;
bool IsPartOfPhysicsWorld;
UnityEvent<PhysicsWorld> AddedToPhysicsWorld;
UnityEvent<PhysicsWorld> RemovedFromPhysicsWorld;
bool CanCut;
uint Layer;
bool IsKinematic;
bool UpdateKinematicParticles;
// methods
virtual void AddToPhysicsWorld();
virtual void RemoveFromPhysicsWorld();
virtual override void AddToPhysicsWorld();
virtual override void RemoveFromPhysicsWorld();
Detailed Documentation¶
A needle actor used along with the Puncturable component for sututing simulations.
Properties¶
ListNeedlePoints
Gets or sets the list of points approximating the shape of the needle.
float Mass
Gets or sets the total needle mass.
float Damping
Gets or sets the damping applied to each particle. A value in the range [0, 1].
Methods¶
void RebuildSimulationMesh()
Rebuilds the simulation mesh from the given NeedlePoints.