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.
Tags: [Deprecated]

Member index 5

HistoryMember
726AngularVelocity: Vector3
726MaxTorque: Vector3
726P: float
726angularvelocity: Vector3
726maxTorque: Vector3
inherited from Instance
726Archivable: bool
726Capabilities: SecurityCapabilities
726IsInSandbox: bool
726Name: string
726Parent: Instance
726PredictionMode: PredictionMode
726Sandboxed: bool
726UniqueId: 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
707GetDescendants(): Instances
486GetFullName(): string
706GetStyled(name: string, selector: string?): Variant
657GetStyledPropertyChangedSignal(property: string): RBXScriptSignal
576GetTags(): Array
576HasTag(tag: string): bool
486IsAncestorOf(descendant: Instance): bool
486IsDescendantOf(ancestor: Instance): bool
664IsPropertyModified(property: string): bool
698QueryDescendants(selector: string): Instances
573Remove(): null
576RemoveTag(tag: string): null
664ResetPropertyToDefault(property: string): null
573SetAttribute(attribute: string, value: Variant): null
462WaitForChild(childName: string, timeOut: double): Instance
726children(): Instances
726clone(): Instance
726destroy(): null
726findFirstChild(name: string, recursive: bool = false): Instance
726getChildren(): Instances
726isDescendantOf(ancestor: Instance): bool
726remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
657StyledPropertiesChanged()
726childAdded(child: Instance)
inherited from Object
726ClassName: string
726className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
726isA(className: string): bool
647Changed(property: string)

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 35

Members 5

AngularVelocity

TypeDefault
Vector3

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 , in order to convert angular frequency (rotations per second) into the desired angular velocity (radians per second).

History 5

MaxTorque

TypeDefault
Vector3

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).

History 5

P

TypeDefault
float

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.

History 5

  • 726 Change Default of P from 1250 to
  • 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
Vector3
This property is deprecated. It exists only for backward compatibility, and should not be used for new work.
This property is not replicated. Its interface does not cross the network boundary.

History 8

Tags: [NotReplicated, Deprecated]

maxTorque

TypeDefault
Vector3

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.
This property is not replicated. Its interface does not cross the network boundary.

History 8

Tags: [NotReplicated, Deprecated]

Settings