Reference API Roblox

Engine API

Website

Related

Reference API Roblox

BodyAngularVelocity

Applies a torque to maintain a constant angular velocity.

This class is deprecated. It exists only for backward compatibility, and should not be used for new work. AngularVelocity should be used instead.
Tags: [Deprecated]

Member index 5

HistoryMember
553AngularVelocity: Vector3
553MaxTorque: Vector3
553P: float
553angularvelocity: Vector3
553maxTorque: Vector3
inherited from Instance
553Archivable: bool
635Capabilities: SecurityCapabilities
553Name: string
553Parent: Instance
635Sandboxed: bool
616UniqueId: UniqueId
576AddTag(tag: string): null
573ClearAllChildren(): null
462Clone(): Instance
573Destroy(): null
486FindFirstAncestor(name: string): Instance
486FindFirstAncestorOfClass(className: string): Instance
486FindFirstAncestorWhichIsA(className: string): Instance
486FindFirstChild(name: string, recursive: bool = false): Instance
486FindFirstChildOfClass(className: string): Instance
486FindFirstChildWhichIsA(className: string, recursive: bool = false): Instance
486FindFirstDescendant(name: string): Instance
563GetActor(): Actor
486GetAttribute(attribute: string): Variant
462GetAttributeChangedSignal(attribute: string): RBXScriptSignal
631GetAttributes(): Dictionary
648GetChildren(): Instances
462GetDebugId(scopeLength: int = 4): string
486GetDescendants(): Array
486GetFullName(): string
641GetStyled(name: string): Variant
576GetTags(): Array
576HasTag(tag: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
580IsPropertyModified(name: string): bool
573Remove(): null
576RemoveTag(tag: string): null
580ResetPropertyToDefault(name: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
648children(): Instances
553clone(): Instance
573destroy(): null
553findFirstChild(name: string, recursive: bool = false): Instance
648getChildren(): Instances
553isDescendantOf(ancestor: Instance): bool
573remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
553childAdded(child: Instance)
inherited from Object
647ClassName: string
647className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
650isA(className: string): bool
647Changed(property: string)

Description

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.

History 27

Members 5

AngularVelocity

TypeDefault
Vector30, 2, 0

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.

History 4

MaxTorque

TypeDefault
Vector34000, 4000, 4000

The MaxTorque property determines the limit of the torque that may be exerted on each world axis. If a part isn't moving, consider raising this value (and also check that it is not Anchored or attached to another anchored part). See also P (power).

History 4

P

TypeDefault
float1250

The P 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.

History 4

  • 553 Change Default of P from to 1250
  • 486 Change ThreadSafety of P from ReadOnly to ReadSafe
  • 462 Change ThreadSafety of P from to ReadOnly
  • 47 Add P

angularvelocity

TypeDefault
Vector30, 2, 0
This property is deprecated. It exists only for backward compatibility, and should not be used for new work. AngularVelocity should be used instead.
This property is not replicated. Its interface does not cross the network boundary.

History 6

Tags: [NotReplicated, Deprecated]

maxTorque

TypeDefault
Vector34000, 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.

This property is deprecated. It exists only for backward compatibility, and should not be used for new work. MaxTorque should be used instead.
This property is not replicated. Its interface does not cross the network boundary.

History 6

Tags: [NotReplicated, Deprecated]

Settings