Table of Contents

Component Physics

(NOTE) A customizable joint that can be configured in script. The user can create constraints belonging to this joint and set the required values to solve them. Some basic constraint understanding is required. To compute constraints you should listen to Events.ComputeCustomJointInfo.

Methods Properties Base Classes Derived Classes
AddConstraint ConstraintCount joint
ClearConstraints
CreateConstraint
Constructor
GetConstraint
RemoveConstraint

Properties


ConstraintCount : integer

read-only

Returns how many constraints this joint owns.

var ConstraintCount : Integer

Methods


AddConstraint : Void

Add a constraint to this joint. This will assert if a joint already owns this constraint. |Name|Type|Description| |---|---|---| |constraint|customconstraintinfo| |

function AddConstraint(constraint : CustomConstraintInfo)

ClearConstraints : Void

Clear all constraints from this joint (so none will solve). |Name|Type|Description| |---|---|---|

function ClearConstraints()

CreateConstraint : customconstraintinfo

Create a constraint that is attached to this joint. |Name|Type|Description| |---|---|---|

function CreateConstraint() : CustomConstraintInfo

CustomJoint : Void

constructor

Name Type Description
function CustomJoint()

GetConstraint : customconstraintinfo

Returns the constraint at the given index. Will assert if the index is outside the constraint count range. |Name|Type|Description| |---|---|---| |index|integer| |

function GetConstraint(index : Integer) : CustomConstraintInfo

RemoveConstraint : Void

If the given constraint belongs to this joint then remove it from the constraints to solve. |Name|Type|Description| |---|---|---| |constraint|customconstraintinfo| |

function RemoveConstraint(constraint : CustomConstraintInfo)