Torque
Applies constant torque to an assembly from its center of mass.
Memory category | PhysicsParts |
---|
Member index 2
Description
A Torque constraint applies constant torque to an assembly from its center of mass. Alternatively:
- Because the Torque constraint 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 an AngularVelocity constraint.
- If you only need initial velocity, set the AssemblyAngularVelocity property 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.
History 12
- 553 Change Default of Torque from to Vector3(0, 0, 0)
- 553 Change Default of RelativeTo from to Attachment0
- 486 Change ThreadSafety of Torque from ReadOnly to ReadSafe
- 486 Change ThreadSafety of RelativeTo from ReadOnly to ReadSafe
- 462 Change ThreadSafety of Torque from to ReadOnly
- 462 Change ThreadSafety of RelativeTo from to ReadOnly
- 454 Change MemoryCategory of Torque from Instances to PhysicsParts
- 452 Change MemoryCategory of Torque from PhysicsParts to Instances
- 453 Change MemoryCategory of Torque from Instances to PhysicsParts
- 281 Add Torque
- 281 Add RelativeTo
- 281 Add Torque
Members 2
RelativeTo
Type | Default | |
---|---|---|
ActuatorRelativeTo | Attachment0 |
The CFrame in which the torque is expressed.
Thread safety | ReadSafe |
---|---|
Category | Torque |
Loaded/Saved | true |
History 4
- 553 Change Default of RelativeTo from to Attachment0
- 486 Change ThreadSafety of RelativeTo from ReadOnly to ReadSafe
- 462 Change ThreadSafety of RelativeTo from to ReadOnly
- 281 Add RelativeTo
Torque
Type | Default | |
---|---|---|
Vector3 | 0, 0, 0 |
The strength and direction of the torque.
Thread safety | ReadSafe |
---|---|
Category | Torque |
Loaded/Saved | true |