BodyAngularVelocity

Show Deprecated
Deprecated

The BodyAngularVelocity object applies a [torque][1] (or rotational force) on a BasePart such that it maintains a constant [angular velocity][3] as determined by its AngularVelocity property. This allows for the creation of parts that continually rotate. It is the rotational counterpart to a BodyVelocity. If you would like to maintain a constant [angular displacement][2], use a BodyGyro instead.

Summary

Properties

Determines the axis of rotation (direction) and the rotational velocity (magnitude) in radians/s.

Determines the limit of torque that may be exerted on each world axis.

Determines how aggressive of a torque is applied in reaching the goal angular velocity.

Properties

AngularVelocity

The AngularVelocity 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. By default, this property is (0, 2, 0).

Tip: You can multiply a Vector3 by math.rad(360), or , in order to convert [angular frequency][5] (rotations per second) into the desired [angular velocity][3] (radians per second). For example: Setting AngularVelocity to Vector3.new(0, 1, 0) * math.rad(360)Vector3.new(0, 6.283, 0) will cause a part to spin around the Y axis once per second.