BallSocketConstraint
Forces its two attachments into the same position and allows them to freely rotate about all three axes, with optional limits to restrict both tilt and twist.
Memory category | PhysicsParts |
---|
Member index 9
Description
A BallSocketConstraint constrains its Attachments so that they occupy the same position. By default it allows both attachments to freely rotate about all of their axes, but if 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.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Limits
You can set limits to restrict both tilt and twist of a ball socket, similar to how a human's head can tilt and turn within a limited axial range. Enabling the LimitsEnabled property exposes the UpperAngle value to restrict tilt within a cone; it also exposes the TwistLimitsEnabled property which, when enabled, lets you restrict twist rotation through the TwistLowerAngle and TwistUpperAngle limits.
History 41
- 553 Change Default of UpperAngle from to 45
- 553 Change Default of TwistUpperAngle from to 45
- 553 Change Default of TwistLowerAngle from to -45
- 553 Change Default of TwistLimitsEnabled from to false
- 553 Change Default of Restitution from to 0
- 553 Change Default of Radius from to 0.150000006
- 553 Add
- 553 Change Default of MaxFrictionTorque from to 0
- 553 Change Default of LimitsEnabled from to false
- 486 Change ThreadSafety of UpperAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of TwistUpperAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of TwistLowerAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of TwistLimitsEnabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Radius from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MaxFrictionTorque from ReadOnly to ReadSafe
- 486 Change ThreadSafety of LimitsEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of UpperAngle from to ReadOnly
- 462 Change ThreadSafety of TwistUpperAngle from to ReadOnly
- 462 Change ThreadSafety of TwistLowerAngle from to ReadOnly
- 462 Change ThreadSafety of TwistLimitsEnabled from to ReadOnly
- 462 Change ThreadSafety of Restitution from to ReadOnly
- 462 Change ThreadSafety of Radius from to ReadOnly
- 462 Change ThreadSafety of MaxFrictionTorque from to ReadOnly
- 462 Change ThreadSafety of LimitsEnabled from to ReadOnly
- 454 Change MemoryCategory of BallSocketConstraint from Instances to PhysicsParts
- 452 Change MemoryCategory of BallSocketConstraint from PhysicsParts to Instances
- 453 Change MemoryCategory of BallSocketConstraint from Instances to PhysicsParts
- 426 Change CanSave of MaxFrictionTorque from true to false
- 426 Change CanLoad of MaxFrictionTorque from true to false
- 420 Add MaxFrictionTorque
- 419 Remove MaxFrictionTorque
- 420 Add MaxFrictionTorque
- 309 Add TwistUpperAngle
- 309 Add TwistLowerAngle
- 309 Add TwistLimitsEnabled
- 261 Add Radius
- 241 Add UpperAngle
- 241 Add Restitution
- 241 Add LimitsEnabled
- 241 Add BallSocketConstraint
Members 9
LimitsEnabled
Type | Default | |
---|---|---|
bool | false |
Sets whether the BallSocketConstraint has a limit on rotation based on UpperAngle. When true, it enforces that its Attachment1 isn't rotated more than a set angle from its Attachment0.
Thread safety | ReadSafe |
---|---|
Category | BallSocket |
Loaded/Saved | true |
History 4
- 553 Change Default of LimitsEnabled from to false
- 486 Change ThreadSafety of LimitsEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of LimitsEnabled from to ReadOnly
- 241 Add LimitsEnabled
MaxFrictionTorque
Type | Default | |
---|---|---|
float | 0 |
Sets the maximum frictional torque applied to keep its Attachments aligned.
MaxFrictionTorque
specifies the stiffness of the
BallSocketConstraint (how much it resists rotation around its
Attachments).
Thread safety | ReadSafe |
---|---|
Category | Friction |
Loaded/Saved | false |
History 8
- 553 Change Default of MaxFrictionTorque from to 0
- 486 Change ThreadSafety of MaxFrictionTorque from ReadOnly to ReadSafe
- 462 Change ThreadSafety of MaxFrictionTorque from to ReadOnly
- 426 Change CanSave of MaxFrictionTorque from true to false
- 426 Change CanLoad of MaxFrictionTorque from true to false
- 420 Add MaxFrictionTorque
- 419 Remove MaxFrictionTorque
- 420 Add MaxFrictionTorque
Radius
Type | Default | |
---|---|---|
float | 0.150000006 |
The visualized radius of the BallSocketConstraint.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
Restitution
Type | Default | |
---|---|---|
float | 0 |
How elastic Attachments connected by a BallSocketConstraint will be when they reach the end of the range specified by UpperAngle when LimitsEnabled is true. Constrained between 0 and 1.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
History 4
- 553 Change Default of Restitution from to 0
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Restitution from to ReadOnly
- 241 Add Restitution
TwistLimitsEnabled
Type | Default | |
---|---|---|
bool | false |
Sets whether the BallSocketConstraint sets a limit on twist rotation based on TwistUpperAngle and TwistLowerAngle. The twist angle is defined as the angle between the Y axis of Attachment1 and the Y axis of Attachment0.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
History 4
- 553 Change Default of TwistLimitsEnabled from to false
- 486 Change ThreadSafety of TwistLimitsEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TwistLimitsEnabled from to ReadOnly
- 309 Add TwistLimitsEnabled
TwistLowerAngle
Type | Default | |
---|---|---|
float | -45 |
Sets the lower twist rotation limit of the BallSocketConstraint, as long as TwistLimitsEnabled is true.
Thread safety | ReadSafe |
---|---|
Category | TwistLimits |
Loaded/Saved | true |
History 4
- 553 Change Default of TwistLowerAngle from to -45
- 486 Change ThreadSafety of TwistLowerAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TwistLowerAngle from to ReadOnly
- 309 Add TwistLowerAngle
TwistUpperAngle
Type | Default | |
---|---|---|
float | 45 |
Sets the upper twist rotation limit of the BallSocketConstraint, as long as TwistLimitsEnabled is true.
Thread safety | ReadSafe |
---|---|
Category | TwistLimits |
Loaded/Saved | true |
History 4
- 553 Change Default of TwistUpperAngle from to 45
- 486 Change ThreadSafety of TwistUpperAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TwistUpperAngle from to ReadOnly
- 309 Add TwistUpperAngle
UpperAngle
Type | Default | |
---|---|---|
float | 45 |
Sets the upper rotation limit of the BallSocketConstraint, as long as LimitsEnabled is true.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
History 4
- 553 Change Default of UpperAngle from to 45
- 486 Change ThreadSafety of UpperAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of UpperAngle from to ReadOnly
- 241 Add UpperAngle