Class
Torque
Applies constant torque to an assembly from its center of mass.
A Torque constraint applies constant torque to an assembly from its center
of mass. Alternatively:
- Because the
Torqueconstraint applies constant torque and angular acceleration, very high speeds may result if no other forces are involved. If you want to maintain a more steady velocity over time, use anAngularVelocityconstraint. - If you only need initial velocity, set the
AssemblyAngularVelocityproperty directly on the assembly.
When configuring this constraint, it may be helpful to study Roblox Units to understand how Roblox units compare to metric units.
Relativity#
By default, torque is applied relative to
Attachment0. If the parent assembly rotates,
the torque will change direction to match the adjusted orientation of the
attachment.
If RelativeTo is set to
World, torque will be applied in world coordinates,
independent of the parent or attachment orientations.
If RelativeTo is set to
Attachment1, torque will be applied relative to
Attachment1 and, if the attachment rotates,
change to match its orientation.
Properties 2#
RelativeToActuatorRelativeTo | The CFrame in which the torque is expressed.ReadSafe |
TorqueVector3 | The strength and direction of the torque.ReadSafe |
RelativeTo: ActuatorRelativeTo#
ReadSafe
The CFrame in which the torque is expressed.
Torque: Vector3#
ReadSafe
The strength and direction of the torque.
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