object:getReactionForce()

Type Function
Object Joint
Library physics.*
Return value Numbers
Revision Release 2024.3703
Keywords joint, getReactionForce
See also Physics Joints (guide)

Overview

This function returns the reaction force in Newtons at the joint anchor in the second body.

Syntax

joint:getReactionForce()

Example

local reactionForceX, reactionForceY = myJoint:getReactionForce()