BodyAngularVelocity
Applies a torque to maintain a constant angular velocity.
Memory category | Instances |
---|
Member index 5
Description
The BodyAngularVelocity
object applies a torque (rotational force) on an
assembly such that it maintains a constant angular velocity as determined by
its AngularVelocity property. This
allows for the creation of assemblies that continually rotate. It is the
rotational counterpart to a BodyVelocity. If you would like to
maintain a constant angular displacement, use a BodyGyro instead.
History 27
- 553 Change PreferredDescriptor of maxTorque from to MaxTorque
- 553 Change Default of maxTorque from to Vector3(4000, 4000, 4000)
- 553 Change PreferredDescriptor of angularvelocity from to AngularVelocity
- 553 Change Default of angularvelocity from to Vector3(0, 2, 0)
- 553 Change Default of P from to 1250
- 553 Change Default of MaxTorque from to Vector3(4000, 4000, 4000)
- 553 Change Default of AngularVelocity from to Vector3(0, 2, 0)
- 553 Change PreferredDescriptor of BodyAngularVelocity from to AngularVelocity
- 516 Change Tags of BodyAngularVelocity from [] to [Deprecated]
- 486 Change ThreadSafety of maxTorque from ReadOnly to ReadSafe
- 486 Change ThreadSafety of angularvelocity from ReadOnly to ReadSafe
- 486 Change ThreadSafety of P 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 maxTorque from to ReadOnly
- 462 Change ThreadSafety of angularvelocity from to ReadOnly
- 462 Change ThreadSafety of P from to ReadOnly
- 462 Change ThreadSafety of MaxTorque from to ReadOnly
- 462 Change ThreadSafety of AngularVelocity from to ReadOnly
- 213 Change Tags of maxTorque from [NotReplicated] to [NotReplicated, Deprecated]
- 213 Change Tags of angularvelocity from [NotReplicated] to [NotReplicated, Deprecated]
- 210 Add MaxTorque
- 210 Add AngularVelocity
- 47 Add maxTorque
- 47 Add angularvelocity
- 47 Add P
- 47 Add BodyAngularVelocity
Members 5
AngularVelocity
Type | Default | |
---|---|---|
Vector3 | 0, 2, 0 |
This property is a Vector3 which determines the goal angular velocity a BodyAngularVelocity should maintain through the exertion of torque. For this property, the direction of the vector is the axis of rotation. The magnitude is the angular velocity in radians per second.
You can multiply a Vector3 by math.rad(360), or 2π
,
in order to convert angular frequency (rotations per second) into the
desired angular velocity (radians per second).
Thread safety | ReadSafe |
---|---|
Category | Goals |
Loaded/Saved | true |
History 4
- 553 Change Default of AngularVelocity from to Vector3(0, 2, 0)
- 486 Change ThreadSafety of AngularVelocity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of AngularVelocity from to ReadOnly
- 210 Add AngularVelocity
MaxTorque
Type | Default | |
---|---|---|
Vector3 | 4000, 4000, 4000 |
This property determines the limit of the torque that may be exerted on each world axis. If an assembly isn't moving, consider raising this value and also check that it is not Anchored or attached to another anchored assembly). See also P (power).
Thread safety | ReadSafe |
---|---|
Category | Goals |
Loaded/Saved | true |
P
Type | Default | |
---|---|---|
float | 1250 |
This property determines how much power is used while applying torque in order to reach the goal AngularVelocity. The higher this value, the more power will be used and the faster it will be used.
Thread safety | ReadSafe |
---|---|
Category | Goals |
Loaded/Saved | true |
angularvelocity
Type | Default | |
---|---|---|
Vector3 | 0, 2, 0 |
Thread safety | ReadSafe |
---|---|
Category | Goals |
Loaded/Saved | true/false |
History 6
- 553 Change PreferredDescriptor of angularvelocity from to AngularVelocity
- 553 Change Default of angularvelocity from to Vector3(0, 2, 0)
- 486 Change ThreadSafety of angularvelocity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of angularvelocity from to ReadOnly
- 213 Change Tags of angularvelocity from [NotReplicated] to [NotReplicated, Deprecated]
- 47 Add angularvelocity
maxTorque
Type | Default | |
---|---|---|
Vector3 | 4000, 4000, 4000 |
The maxTorque property is a deprecated variant of BodyAngularVelocity.MaxTorque that lets you set how much force could be applied to each axis.
Thread safety | ReadSafe |
---|---|
Category | Goals |
Loaded/Saved | true/false |
History 6
- 553 Change PreferredDescriptor of maxTorque from to MaxTorque
- 553 Change Default of maxTorque from to Vector3(4000, 4000, 4000)
- 486 Change ThreadSafety of maxTorque from ReadOnly to ReadSafe
- 462 Change ThreadSafety of maxTorque from to ReadOnly
- 213 Change Tags of maxTorque from [NotReplicated] to [NotReplicated, Deprecated]
- 47 Add maxTorque