Difference between revisions of "Joint"

Line 1: Line 1:
 
Attach multiple bodies together to interact in unique ways.
 
Attach multiple bodies together to interact in unique ways.
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::Joint]]
+
{{#ask: [[Category:Functions]] [[parent::Joint||Object]]
| headers=hide
 
| ?Description
 
}}
 
{{#ask: [[Category:Functions]] [[parent::Object]]
 
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 12: Line 8:
 
[[Object]]
 
[[Object]]
 
== Subtypes ==
 
== Subtypes ==
{{#ask: [[Category:Types]] [[parent::Joint]]
+
{{#ask: [[Category:Types]] [[parent::Joint]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
 
}}
 
}}
 
== Enums ==
 
== Enums ==
{{#ask: [[Category:Enums]] [[parent::Joint]]
+
{{#ask: [[Category:Enums]] [[parent::Joint]] [[Since::<071]]
 
| headers=hide
 
| headers=hide
 
| ?Description
 
| ?Description
Line 25: Line 21:
 
[[Category:Types]]
 
[[Category:Types]]
 
{{#set:Description=Attach multiple bodies together to interact in unique ways.}}
 
{{#set:Description=Attach multiple bodies together to interact in unique ways.}}
 +
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Joint}}
 
{{i18n|Joint}}

Revision as of 17:33, 25 March 2011

Attach multiple bodies together to interact in unique ways.

Functions

Joint:destroyExplicitly destroys the Joint.
Joint:getAnchorsGet the anchor points of the joint.
Joint:getBodiesGets the bodies that the Joint is attached to.
Joint:getCollideConnectedGets whether the connected Bodies collide.
Joint:getReactionForceReturns the reaction force on the second body.
Joint:getReactionTorqueReturns the reaction torque on the second body.
Joint:getTypeGets a string representing the type.
Joint:getUserDataReturns the Lua value associated with this Joint.
Joint:isDestroyedGets whether the Joint is destroyed.
Joint:setCollideConnectedSets whether the connected Bodies should collide with each other.
Joint:setUserDataAssociates a Lua value with the Joint.
Object:releaseImmediately destroys the object's Lua reference.
Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.

Supertypes

Object

Subtypes

DistanceJointKeeps two bodies at the same distance.
GearJointKeeps bodies together in such a way that they act like gears.
MouseJointFor controlling objects with the mouse.
PrismaticJointRestricts relative motion between Bodies to one shared axis.
PulleyJointAllows you to simulate bodies connected through pulleys.
RevoluteJointAllow two Bodies to revolve around a shared point.

Enums

JointTypeDifferent types of joints.

See Also


Other Languages