B2GETPREVIOUSJOINTNODE

Every body has a linked list of the joints connected to it.  This command will return the ID of the previous Joint Node on the specified body. If it returns 0, there are no more joints attached to the body.  You can then use the returned ID to find information about this joint node with b2GetJointNodeBody and b2GetJointNodeJoint.  You must call b2GetBodyFirstJointNode before using this command.  You can use b2GetPreviousJointNode to go back again or b2GetNextJointNode to get the next joint node on the body.  The parameter should be the integer handle of the body to be checked.

 

Syntax

Return as Integer = b2GetPreviousJointNode(ID as Integer)

Related Information

BOX2D Commands Menu
Index