B2.Joint:getType: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "</source" to "</syntaxhighlight" |
||
| Line 18: | Line 18: | ||
<source lang="lua"> | <source lang="lua"> | ||
(string) = b2.Joint:getType() | (string) = b2.Joint:getType() | ||
</ | </syntaxhighlight> | ||
=== Return values === | === Return values === | ||
Revision as of 15:57, 12 July 2023
Available since: Gideros 2011.6
Class: b2.Joint
Description
Returns the type of the concrete joint. The return value can be one of the following:
- b2.DISTANCE_JOINT
- b2.FRICTION_JOINT
- b2.GEAR_JOINT
- b2.MOUSE_JOINT
- b2.PRISMATIC_JOINT
- b2.PULLEY_JOINT
- b2.REVOLUTE_JOINT
- b2.ROPE_JOINT
- b2.WELD_JOINT
- b2.WHEEL_JOINT
<source lang="lua"> (string) = b2.Joint:getType() </syntaxhighlight>
Return values
Returns (string) the type of the joint