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
731AngularVelocity: Vector3
731MaxTorque: Vector3
731P: float
731angularvelocity: Vector3
731maxTorque: Vector3
inherited from Instance
731Archivable: bool
731Capabilities: SecurityCapabilities
731IsInSandbox: bool
731Name: string
731Parent: Instance
731PredictionMode: PredictionMode
731Sandboxed: bool
731UniqueId: 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
731children(): Instances
731clone(): Instance
731destroy(): null
731findFirstChild(name: string, recursive: bool = false): Instance
731getChildren(): Instances
731isDescendantOf(ancestor: Instance): bool
731remove(): null
462AncestryChanged(child: Instance, parent: Instance)
462AttributeChanged(attribute: string)
462ChildAdded(child: Instance)
462ChildRemoved(child: Instance)
462DescendantAdded(descendant: Instance)
462DescendantRemoving(descendant: Instance)
500Destroying()
657StyledPropertiesChanged()
731childAdded(child: Instance)
inherited from Object
731ClassName: string
731className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
731isA(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 43

Members 5

AngularVelocity

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

History 6

MaxTorque

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

History 6

P

TypeDefault
float1250

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 6

  • 731 Change Default of P from to 1250
  • 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
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 10

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 10

Tags: [NotReplicated, Deprecated]

Settings