class MAGES::MeshDeformations::DistanceJoint¶
Overview¶
A joint trying to keep two particles a certain distance apart. More…
class DistanceJoint: public MonoBehaviour
{
public:
// properties
BasePhysicsActor Actor;
SimulationMesh SimulationMesh;
int SimulationMeshParticleIndex;
BasePhysicsActor ConnectedActor;
SimulationMesh ConnectedSimulationMesh;
int ConnectedSimulationMeshParticleIndex;
float TargetDistance;
float Compliance;
bool Breakable;
float BreakForce;
// methods
void SetDirty();
};
Detailed Documentation¶
A joint trying to keep two particles a certain distance apart.
Properties¶
BasePhysicsActor Actor
Gets or sets the actor this joint is connected to.
SimulationMesh SimulationMesh
Gets or sets the simulation mesh this joint is connected to.
int SimulationMeshParticleIndex
Gets or sets the index of the particle in the Actor this joint is connected to.
BasePhysicsActor ConnectedActor
Gets or sets the other actor this joint is connected to.
SimulationMesh ConnectedSimulationMesh
Gets or sets the other simulation mesh this joint is connected to.
int ConnectedSimulationMeshParticleIndex
Gets or sets the index of the particle in the ConnectedActor this joint is connected to.
float TargetDistance
Gets or sets the distane the solver will try to achieve between the two particles.
float Compliance
Gets or sets the constraint’s compliance.
bool Breakable
Gets or sets a value indicating whether this joint is breakable.
float BreakForce
Gets or sets the force at which this joint will break, if it is breakable.