object.joint1

Type Userdata
Object Joint
Library physics.*
Revision 2017.3179
Keywords joint, joint1
See also object.joint2
Physics Joints (guide)

Overview

Applies only to "gear" joints. Read-only reference to the first "pivot" or `"piston" joint associated with the gear joint.

Example

local gearJoint = physics.newJoint( "gear", bodyA, bodyB, joint1, joint2, 1.0 )

print( gearJoint.joint1 )
print( gearJoint.joint2 )