class MAGES::MeshDeformations::Puncturable::ObservedTriangle

Overview

An observed triangle that can be punctured. More…

class ObservedTriangle
{
public:
    // fields

    int PuncturableTriangleIndex = 0;
    bool IsPunctured = false;
    bool WasPunctured = false;
    UnityEvent OnPunctured = new UnityEvent();
    UnityEvent OnUnpunctured = new UnityEvent();
};

Detailed Documentation

An observed triangle that can be punctured.

Fields

int PuncturableTriangleIndex = 0

The triangle index.

bool IsPunctured = false

Whether the triangle is punctured.

bool WasPunctured = false

Whether it was punctured in the last frame.

UnityEvent OnPunctured = new UnityEvent()

Event invoked when the triangle is punctured.

UnityEvent OnUnpunctured = new UnityEvent()

Event invoked when the triangle is unpunctured.