Skip to content
Roblox API Reference

BodyGyro

Deprecated: This object is deprecated and should not be used for new work. Use AlignOrientation instead, and see the legacy conversion notes (opens in a new tab).
Applies a torque to maintain a constant orientation.
  • Deprecated
Memory category
Instances
Own members
6
Inherited members
75
Subclasses
0
Siblings
7

Properties29

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byBodyGyro6

Property categoryGoals

  • BodyGyro.CFrame: CFrame = CFrame.identity
    Determines the target orientation (translational component ignored).
    • Read capabilities: Physics
  • BodyGyro.D: number = 500
    Determines the amount of dampening to use in reaching the goal CFrame.
    • Read capabilities: Physics
  • BodyGyro.MaxTorque: Vector3 = Vector3.new(400000, 0, 400000)
    Determines the limit on how much torque that may be applied to each axis.
    • Read capabilities: Physics
  • BodyGyro.P: number = 3000
    Determines how aggressive of a torque is applied in reaching the goal orientation.
    • Read capabilities: Physics
  • BodyGyro.cframe: CFrame = CFrame.identity
    Deprecated: This property is a deprecated variant of BodyGyro.CFrame which should be used instead.
    • Deprecated
    • Not replicated
    • Read capabilities: Physics
    • Load only

    Use CFrame instead.

  • BodyGyro.maxTorque: Vector3 = Vector3.new(400000, 0, 400000)
    Deprecated: This property is a deprecated variant of BodyGyro.MaxTorque which should be used instead.
    • Deprecated
    • Not replicated
    • Read capabilities: Physics
    • Load only

    Use MaxTorque instead.

Methods42

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39

Events10

Inherited fromObject1
Inherited fromInstance9