Difference between revisions of "WheelJoint"

(add image)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
Restricts a point on the second body to a line on the first body.
 
Restricts a point on the second body to a line on the first body.
 +
 +
[[File:physicsJointWheel.png]]
 +
 
== Constructors ==
 
== Constructors ==
 
{{#ask: [[Category:Functions]] [[Constructs::WheelJoint]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[Constructs::WheelJoint]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| default=None.
 
| default=None.
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 
}}
 
}}
 
== Functions ==
 
== Functions ==
 
{{#ask: [[Category:Functions]] [[parent::WheelJoint||Joint]] [[Concept:Current]]
 
{{#ask: [[Category:Functions]] [[parent::WheelJoint||Joint]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 
| ?Description
 
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 
}}
 
}}
 
== Supertypes ==
 
== Supertypes ==

Latest revision as of 19:26, 28 May 2016

Restricts a point on the second body to a line on the first body.

physicsJointWheel.png

Constructors

love.physics.newWheelJoint Creates a wheel joint. Added since 0.8.0

Functions

Joint:destroy Explicitly destroys the Joint.
Joint:getAnchors Get the anchor points of the joint.
Joint:getBodies Gets the bodies that the Joint is attached to. Added since 0.9.2
Joint:getCollideConnected Gets whether the connected Bodies collide.
Joint:getReactionForce Returns the reaction force on the second body.
Joint:getReactionTorque Returns the reaction torque on the second body.
Joint:getType Gets a string representing the type.
Joint:getUserData Returns the Lua value associated with this Joint. Added since 0.9.2
Joint:isDestroyed Gets whether the Joint is destroyed. Added since 0.9.2
Joint:setCollideConnected Sets whether the connected Bodies should collide with each other. Removed in 0.8.0
Joint:setUserData Associates a Lua value with the Joint. Added since 0.9.2
WheelJoint:enableMotor Starts and stops the joint motor. Added since 0.8.0 Removed in 0.9.0
WheelJoint:getAxis Gets the world-space axis vector of the Prismatic Joint. Added since 0.10.2
WheelJoint:getJointSpeed Returns the current joint translation speed. Added since 0.8.0
WheelJoint:getJointTranslation Returns the current joint translation. Added since 0.8.0
WheelJoint:getMaxMotorTorque Returns the maximum motor torque. Added since 0.8.0
WheelJoint:getMotorSpeed Returns the speed of the motor. Added since 0.8.0
WheelJoint:getMotorTorque Returns the current torque on the motor. Added since 0.8.0
WheelJoint:getSpringDampingRatio Returns the damping ratio. Added since 0.8.0
WheelJoint:getSpringFrequency Returns the spring frequency. Added since 0.8.0
WheelJoint:isMotorEnabled Checks if the joint motor is running. Added since 0.8.0
WheelJoint:setMaxMotorTorque Sets a new maximum motor torque. Added since 0.8.0
WheelJoint:setMotorEnabled Starts and stops the joint motor. Added since 0.9.0
WheelJoint:setMotorSpeed Sets a new speed for the motor. Added since 0.8.0
WheelJoint:setSpringDampingRatio Sets a new damping ratio. Added since 0.8.0
WheelJoint:setSpringFrequency Sets a new spring frequency. Added since 0.8.0

Supertypes

See Also


Other Languages