Luduvo Contents
Theme
On this page

SwingTwistJointInfo

the axes and angle limits a live swing-twist joint reports

Fields

9 members

Anchor: vector

anchor position of the joint in local space

Friction: number

joint rotational friction coefficient

NormalCone: number

maximum swing angle along the normal axis in radians

PlaneAxis: vector

plane axis orthogonal to the twist axis

PlaneCone: number

maximum swing angle along the plane axis in radians

RestAxis: vector

rest direction for swing limits

TwistAxis: vector

primary twist axis of the joint

TwistMax: number

maximum twist angle limit in radians

TwistMin: number

minimum twist angle limit in radians

Inspecting the Limits of a Live Joint

Lifecycle: Shared

An instance without a swing-twist joint returns nil, and the angles come back in radians.

Luau
local arm = handles.RagdollArmlocal joint = arm:GetSwingTwistJoint()if joint then	print(string.format(		"swing %.0f deg, twist %.0f to %.0f deg",		math.deg(joint.PlaneCone),		math.deg(joint.TwistMin),		math.deg(joint.TwistMax)	))end