class MAGES::MeshDeformations::SceneGraph::TearActionGhostMarker

Overview

Keeps a Tear Action ghost disc centred on a single volume constraint’s tetrahedron, billboarded to the active camera, and self-destructs the moment that one constraint is cut, independently of any sibling discs. More…

class TearActionGhostMarker: public MonoBehaviour
{
public:
    // methods

    void Initialize(
        BasePhysicsActor physicsActor,
        int[] constraintParticleIndices,
        int volumeConstraintIndex
    );
};

Detailed Documentation

Keeps a Tear Action ghost disc centred on a single volume constraint’s tetrahedron, billboarded to the active camera, and self-destructs the moment that one constraint is cut, independently of any sibling discs.

Methods

void Initialize(
    BasePhysicsActor physicsActor,
    int[] constraintParticleIndices,
    int volumeConstraintIndex
)

Initializes the marker for a single volume constraint.

Parameters:

physicsActor

The deformable actor whose particles/constraints back this disc.

constraintParticleIndices

The constraint’s four particle indices (ParticleA..D).

volumeConstraintIndex

The single volume-constraint index to watch for a cut.