UniversalConstraint
Ensures two axes on two bodies remain perpendicular.
Memory category | PhysicsParts |
---|
Member index 4
Description
A UniversalConstraint ensures two axes on two bodies remain perpendicular. Contextually, this constraint is more restrictive than a BallSocketConstraint but less restrictive than a HingeConstraint by one degree of freedom.
Example applications of this constraint include transmitting power between the transmission and drive shafts of cars, robotics, and more.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Limits
Enabling the LimitsEnabled property exposes the MaxAngle limit to restrict tilt within a cone, as well as Restitution which defines the elasticity of the attachments when they reach the limit.
History 13
- 553 Change Default of Restitution from to 0
- 553 Change Default of Radius from to 0.200000003
- 553 Change Default of MaxAngle from to 45
- 553 Change Default of LimitsEnabled from to false
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 486 Change ThreadSafety of Radius from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MaxAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of LimitsEnabled from ReadOnly to ReadSafe
- 462 Add Restitution
- 462 Add Radius
- 462 Add MaxAngle
- 462 Add LimitsEnabled
- 462 Add UniversalConstraint
Members 4
LimitsEnabled
Type | Default | |
---|---|---|
bool | false |
This property, when enabled, limits the relative angular motion of the primary axes of attachments through a cone constraint. The default value is false.
Thread safety | ReadSafe |
---|---|
Category | Universal |
Loaded/Saved | true |
History 3
- 553 Change Default of LimitsEnabled from to false
- 486 Change ThreadSafety of LimitsEnabled from ReadOnly to ReadSafe
- 462 Add LimitsEnabled
MaxAngle
Type | Default | |
---|---|---|
float | 45 |
This property determines the max angle, in degrees, of the constraint's limiting cone, formed from Attachment0 and its primary axis. The default value is 45 degrees.
In order for this property to take affect, the constraint's LimitsEnabled property must be set to true.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
Radius
Type | Default | |
---|---|---|
float | 0.200000003 |
This property indicates the constraint's visualization radius, in studs. Default value is 0.2.
Thread safety | ReadSafe |
---|---|
Category | Appearance |
Loaded/Saved | true |
Restitution
Type | Default | |
---|---|---|
float | 0 |
This property determines the restitution of the two Attachments connected by the UniversalConstraint when they reach the end of the range specified by MaxAngle. The value defaults to 0 and can be any floating number in the range of 0 to 1. Only applies when LimitsEnabled is set to true.
Thread safety | ReadSafe |
---|---|
Category | Limits |
Loaded/Saved | true |
History 3
- 553 Change Default of Restitution from to 0
- 486 Change ThreadSafety of Restitution from ReadOnly to ReadSafe
- 462 Add Restitution