Type Userdata Object Joint Library physics.* Revision Release 2021.3646 Keywords joint, joint2 See also object.joint1 Physics Joints (guide)
Applies only to
"gear" joints. Read-only reference to the second
"piston" joint associated with the gear joint.
local gearJoint = physics.newJoint( "gear", bodyA, bodyB, joint1, joint2, 1.0 ) print( gearJoint.joint1 ) print( gearJoint.joint2 )