Class
UniversalConstraint
Ensures two axes on two bodies remain perpendicular.
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.
Properties 4#
LimitsEnabledboolean | Determines whether the angular motion of attachments' primary axes is limited.ReadSafe |
MaxAnglefloat | The max angle, in degrees, of the constraint's limiting cone.ReadSafe |
Radiusfloat | The constraint's visualization radius.ReadSafe |
Restitutionfloat | The restitution coefficient of the cone constraint.ReadSafe |
LimitsEnabled: boolean#
ReadSafe
This property, when enabled, limits the relative angular motion of the primary axes of attachments through a cone constraint. The default value is false.
MaxAngle: float#
ReadSafe
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.
Radius: float#
ReadSafe
This property indicates the constraint's visualization radius, in studs. Default value is 0.2.
Restitution: float#
ReadSafe
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.
Inherited members#
Inherited from Instance 58
Properties (10)
Archivable, archivable, Capabilities, IsInSandbox, Name, Parent, PredictionMode, RobloxLocked, Sandboxed, UniqueId
Methods (39)
AddTag, children, ClearAllChildren, Clone, clone, Destroy, destroy, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, findFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, FindFirstDescendant, GetActor, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, getChildren, GetDebugId, GetDescendants, GetFullName, GetStyled, GetStyledPropertyChangedSignal, GetTags, HasTag, IsAncestorOf, IsDescendantOf, isDescendantOf, IsPropertyModified, QueryDescendants, Remove, remove, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild