class MAGES::MeshDeformations::Tools::ParticleDisconnectionDetector

Overview

Detects disconnection between particles in a simulation mesh. More…

class ParticleDisconnectionDetector: public MAGES::MeshDeformations::Tools::BaseDetector
{
public:
    // structs

    struct ObservedParticlePair;

    // properties

    List<ObservedParticlePair> ObservedParticlePairs;
    UnityEvent DisconnectionEvent;
};

Inherited Members

public:
    // properties

    BasePhysicsActor Actor;

Detailed Documentation

Detects disconnection between particles in a simulation mesh.

Two particles are connected if there is a distance constraint between them or between some other particles that are connected to them.

Properties

List<ObservedParticlePair> ObservedParticlePairs

Gets or sets the particle pairs to be observed for disconnection.

UnityEvent DisconnectionEvent

Gets the UnityEvent invoked when a pair of the observed ones diconnects.

arg1: The index of the first particle in the pair.

arg2: The index of the second particle in the pair.