struct MAGES::MeshDeformations::Particle

Overview

A particle in the simulation mesh. More…

struct Particle
{
    // fields

    bool Enabled;
    bool Breakable;
    bool Kinematic;
    float InverseMass;
    int PhysicsMaterialIndex;
    float3 Position;
    float3 Velocity;
};

Detailed Documentation

A particle in the simulation mesh.

Fields

bool Enabled

Defines whether the particle is enabled.

bool Breakable

Defines whether the particle can be broken(removed).

bool Kinematic

Defines whether the particle is kinematic.

float InverseMass

The inverse mass of the particle.

int PhysicsMaterialIndex

The physics material index.

float3 Position

The position of the particle.

float3 Velocity

The velocity of the particle.