class MAGES::MeshDeformations::PinJoint

Overview

Pins a particle at the given world poisition. More…

class PinJoint: public MonoBehaviour
{
public:
    // properties

    Vector3 WorldPinPosition;
    BasePhysicsActor Actor;
    SimulationMesh SimulationMesh;
    int SimulationMeshParticleIndex;
    Vector3 PinPosition;
    float Compliance;
    bool Breakable;
    float BreakForce;
};

Detailed Documentation

Pins a particle at the given world poisition.

Properties

Vector3 WorldPinPosition

Gets the world position of the pin target.

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.

Vector3 PinPosition

Gets or sets the target local position for the pinned particle.

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.