Joint

Parent Userdata
Library physics.*
Revision Current Public Release (2017.3068)
Keywords physics, joints
See also Physics Joints (guide)
physics.newJoint()

Overview

Joints can be used to assemble complex physical objects from multiple rigid bodies. For example, joints can be used to join the limbs of a ragdoll figure, attach the wheels of a vehicle to its body, create a moving elevator platform, and more. All joints are created using the physics.newJoint() constructor.

Please refer to the Physics Joints guide for details on the setup and configuration of each joint type.

Properties

Shared

joint.reactionTorque

Distance Joint

distanceJoint.length

Friction Joint

gearJoint.ratio

Piston Joint

pulleyJoint.ratio

Touch Joint

touchJoint.maxForce

Wheel Joint

Methods

(Inherits methods from Userdata)

Shared

joint:removeSelf()

Touch Joint

touchJoint:setTarget()

Piston Joint

wheelJoint:getLocalAxisA()