TxConstraint - Scripting API - Documents - Truss Physics
/ Documents / Scripting API / TxConstraint >

TxConstraint class

Description

Soft body constraint component class

Details

Game object component. Works with TxSoftBody component to constrain the motion of a soft body relatively to another soft, static or rigid body or the global space. The component also can apply permanent torque to the bodies to simulate a motor.

Properties

attachedBodyBody A
baseBodyBody B
isBrokenBroken state of the constraint
motorRateTarget rotation speed of the motor
motorTorqueMaximum torque the motor can apply

Methods

 

Events

onBreakRaised after the simulation step if constraint was broken