PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

BallSocketConstraint

Show deprecated

BallSocketConstraint

Show deprecated

A BallSocketConstraint constrains its Attachment|Attachments so that they occupy the same position. By default it allows both attachments to freely rotate about all of their axes, but if BallSocketConstraint/LimitsEnabled is true, the attachments can only rotate in a limited cone.

Note that if this constraint attaches one part (A) to another part (B) that is anchored or connected to an anchored part (Z), part A will not be locally simulated when interacting with a player.

Properties

bool

LimitsEnabled

Sets whether the BallSocketConstraint sets a limit on rotation based on BallSocketConstraint/UpperAngle.

float

Radius

The visualized radius of the BallSocketConstraint.

float

Restitution

How elastic Attachment connected by a BallSocketConstraint will be when they reach the end of the range specified by BallSocketConstraint/UpperAngle when BallSocketConstraint/LimitsEnabled is true. Constrained between 0 and 1.

bool

TwistLimitsEnabled

Sets whether the BallSocketConstraint sets a limit on twist rotation based on BallSocketConstraint/TwistUpperAngle and BallSocketConstraint/TwistLowerAngle.

float

TwistLowerAngle

Sets the lower twist rotation limit of the BallSocketConstraint, as long as BallSocketConstraint/TwistLimitsEnabled is true.

float

TwistUpperAngle

Sets the upper twist rotation limit of the BallSocketConstraint, as long as BallSocketConstraint/TwistLimitsEnabled is true.

float

UpperAngle

Sets the upper rotation limit of the BallSocketConstraint, as long as BallSocketConstraint/LimitsEnabled is true.

Functions

Events