class MAGES::MeshDeformations::Synchronization::AddSimulationMeshCommand

Overview

Command to be queued for adding a simulation mesh to the physics world in the next synchronization step. More…

class AddSimulationMeshCommand: public MAGES.MeshDeformations.Synchronization.BaseCommand
{
public:
    // methods

    AddSimulationMeshCommand(
        SimulationMesh simulationMesh,
        float4x4 spawnTRS,
        uint phase
    );

    override void Apply(PhysicsWorld physicsWorld);
};

Detailed Documentation

Command to be queued for adding a simulation mesh to the physics world in the next synchronization step.

Methods

AddSimulationMeshCommand(
    SimulationMesh simulationMesh,
    float4x4 spawnTRS,
    uint phase
)

Initializes a new instance of the AddSimulationMeshCommand class.

Parameters:

simulationMesh

The simulation mesh to spawn.

spawnTRS

The trs spawn matrix.

phase

The collision phase.