Table of Contents

Component Physics

(NOTE) Joints connect two objects together with one or more constraints. A constraint is a mathematical rule that restricts object movement, typically defined in terms of the position and velocities of the objects involved.

Methods Properties Base Classes Derived Classes
GetCog Active component customjoint
GetOtherObject AutoSnaps fixedanglejoint
Constructor CollideConnected gearjoint
MaxImpulse linearaxisjoint
SendsEvents manipulatorjoint
phygunjoint
positionjoint
prismaticjoint
prismaticjoint2d
pulleyjoint
relativevelocityjoint
revolutejoint
revolutejoint2d
stickjoint
universaljoint
uprightjoint
weldjoint
wheeljoint
wheeljoint2d

Properties


Active : boolean

Determines if this joint is currently active. Used for runtime enabling/disabling of joints.

var Active : Boolean

AutoSnaps : boolean

Determines if this joint will automatically delete itself if any of its constraints reach the max impulse value. This will still send an event if it snaps.

var AutoSnaps : Boolean

CollideConnected : boolean

Determines if the two objects connected by this joint can collide. If any joint between this pair does not collide, then the pair does not collide. All joints have to be set to true in order to have the objects collide.

var CollideConnected : Boolean

MaxImpulse : real

The maximum impulse (instantaneous force) that this joint can apply to correct itself.

var MaxImpulse : Real

SendsEvents : boolean

Determines if this joint will send any events. Used for a small efficiency boost and for reducing the number of events.

var SendsEvents : Boolean

Methods


GetCog : cog

Returns the cog associated with an index. Index of 0 is ObjectA, index 1 is ObjectB. Used to write more streamline functions where you index into the objects in a loop. |Name|Type|Description| |---|---|---| |index|integer| |

function GetCog(index : Integer) : Cog

GetOtherObject : cog

If the passed in object is ObjectA, returns ObjectB. Provides easier logic for traversing across joints. |Name|Type|Description| |---|---|---| |cog|cog| |

function GetOtherObject(cog : Cog) : Cog

Joint : Void

constructor

Name Type Description
function Joint()