AngularVelocity
Applies torque on an assembly to maintain a constant angular velocity.
Memory category | PhysicsParts |
---|
Member index 4
Description
The AngularVelocity constraint applies torque on an assembly to maintain a constant angular velocity. Alternatively:
- If you want to control the amount of torque applied, use a Torque constraint.
- If you only need initial angular velocity, set the AssemblyAngularVelocity method 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
Application of velocity can be controlled through the constraint's RelativeTo property. If set to World, the angular velocity vector is used as is. If set to Attachment1 and the constraint's Attachment1 property is set to another attachment, the angular velocity will be affected by that of the other attachment. Setting RelativeTo to Attachment1 also exposes the ReactionTorqueEnabled property.
History 22
- 553 Change Default of RelativeTo from to World
- 553 Change Default of ReactionTorqueEnabled from to false
- 553 Change Default of MaxTorque from to 0
- 553 Change Default of AngularVelocity from to Vector3(0, 0, 0)
- 486 Change ThreadSafety of RelativeTo from ReadOnly to ReadSafe
- 486 Change ThreadSafety of ReactionTorqueEnabled from ReadOnly to ReadSafe
- 486 Change ThreadSafety of MaxTorque from ReadOnly to ReadSafe
- 486 Change ThreadSafety of AngularVelocity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of RelativeTo from to ReadOnly
- 462 Change ThreadSafety of ReactionTorqueEnabled from to ReadOnly
- 462 Change ThreadSafety of MaxTorque from to ReadOnly
- 462 Change ThreadSafety of AngularVelocity from to ReadOnly
- 454 Change MemoryCategory of AngularVelocity from Instances to PhysicsParts
- 452 Change MemoryCategory of AngularVelocity from PhysicsParts to Instances
- 453 Change MemoryCategory of AngularVelocity from Instances to PhysicsParts
- 420 Add ReactionTorqueEnabled
- 419 Remove ReactionTorqueEnabled
- 420 Add ReactionTorqueEnabled
- 377 Add RelativeTo
- 377 Add MaxTorque
- 377 Add AngularVelocity
- 377 Add AngularVelocity
Members 4
AngularVelocity
Type | Default | |
---|---|---|
Vector3 | 0, 0, 0 |
A Vector3 that gives the desired or target angular velocity. This vector is set in the CFrame expressed by the RelativeTo property.
Thread safety | ReadSafe |
---|---|
Category | Torque |
Loaded/Saved | true |
History 4
- 553 Change Default of AngularVelocity from to Vector3(0, 0, 0)
- 486 Change ThreadSafety of AngularVelocity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of AngularVelocity from to ReadOnly
- 377 Add AngularVelocity
MaxTorque
Type | Default | |
---|---|---|
float | 0 |
Magnitude of the maximum torque the constraint can apply.
Thread safety | ReadSafe |
---|---|
Category | Torque |
Loaded/Saved | true |
ReactionTorqueEnabled
Type | Default | |
---|---|---|
bool | false |
This property, when enabled, causes the constraint to apply equal and opposite reaction forces. This is important if the two attached parts can collide, since without reaction forces collisions can create energy that would otherwise be disregarded.
When enabled, the reaction forces cause the constraint to act like an angular motor between the two attachments.
Only meaningful when RelativeTo is set to Attachment1.
Thread safety | ReadSafe |
---|---|
Category | Torque |
Loaded/Saved | true |
History 6
- 553 Change Default of ReactionTorqueEnabled from to false
- 486 Change ThreadSafety of ReactionTorqueEnabled from ReadOnly to ReadSafe
- 462 Change ThreadSafety of ReactionTorqueEnabled from to ReadOnly
- 420 Add ReactionTorqueEnabled
- 419 Remove ReactionTorqueEnabled
- 420 Add ReactionTorqueEnabled
RelativeTo
Type | Default | |
---|---|---|
ActuatorRelativeTo | World |
The CFrame in which the AngularVelocity force is specified. If set to World, the angular velocity vector is used as is. If set to Attachment1, the angular velocity is transformed by the CFrame of the assigned attachment.
RelativeTo can also be set to Attachment0, but it makes no physical sense and will lead to unpredictable behaviors.
Thread safety | ReadSafe |
---|---|
Category | Torque |
Loaded/Saved | true |
History 4
- 553 Change Default of RelativeTo from to World
- 486 Change ThreadSafety of RelativeTo from ReadOnly to ReadSafe
- 462 Change ThreadSafety of RelativeTo from to ReadOnly
- 377 Add RelativeTo