object:getReactionForce()

Type Function
Object Joint
Library physics.*
Return value Numbers
Revision 2017.3060
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()