struct MAGES::MeshDeformations::ShapeMatchingConstraint

Overview

A shape matching constraint for a particle. More…

struct ShapeMatchingConstraint
{
    // fields

    bool Enabled;
    bool Breakable;
    int Particle;
    int PhysicsMaterialIndex;

    // methods

    ShapeMatchingConstraint(int particle);
    ShapeMatchingConstraint(int particle, int physicsMaterial);
    ShapeMatchingConstraint(int particle, bool breakable, bool enabled = true);
};

Detailed Documentation

A shape matching constraint for a particle.

Fields

bool Enabled

Defines whether this constraint is enabled.

bool Breakable

Defines whether this constraint can be broken.

int Particle

Particle index.

int PhysicsMaterialIndex

Physics material index.

Methods

ShapeMatchingConstraint(int particle)

Initializes a new instance of the ShapeMatchingConstraint struct.

Parameters:

particle

The particle index.

ShapeMatchingConstraint(int particle, int physicsMaterial)

Initializes a new instance of the ShapeMatchingConstraint struct.

Parameters:

particle

The particle index.

physicsMaterial

Physics material index.

ShapeMatchingConstraint(int particle, bool breakable, bool enabled = true)

Initializes a new instance of the ShapeMatchingConstraint struct.

Parameters:

particle

The particle index.

breakable

Defines whether this constraint can be broken.

enabled

Whether this constraint is enabled.