nanos world API Reference Unofficial documentation
Function Server Fast

Cable:SetAngularLimits

Sets the Physics Angular Limits of this cable

Syntax

Lua
my_cable:SetAngularLimits(swing_1_motion, swing_2_motion, twist_motion, swing_1_limit = 0, swing_2_limit = 0, twist_limit = 0)

Parameters

Name Type Default Description
swing_1_motion ConstraintMotion Indicates whether the Swing1 limit is used
swing_2_motion ConstraintMotion Indicates whether the Swing2 limit is used
twist_motion ConstraintMotion Indicates whether the Twist limit is used
swing_1_limit optional float 0 Angle of movement along the XY plane. This defines the first symmetric angle of the cone
swing_2_limit optional float 0 Angle of movement along the XZ plane. This defines the second symmetric angle of the cone
twist_limit optional float 0 Symmetric angle of roll along the X-axis