Skip to content
Roblox API Reference

BodyPosition

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

Properties29

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byBodyPosition6

Property categoryGoals

  • BodyPosition.D: number = 1250
    Determines the amount of dampening to use in reaching the goal Position.
    • Read capabilities: Physics
  • BodyPosition.MaxForce: Vector3 = Vector3.new(4000, 4000, 4000)
    Determines the limit on how much force that may be applied to each axis.
    • Read capabilities: Physics
  • BodyPosition.P: number = 10000
    Determines how aggressive of a force is applied in reaching the goal position.
    • Read capabilities: Physics
  • BodyPosition.Position: Vector3 = Vector3.new(0, 50, 0)
    Determines the goal position towards which force will be applied.
    • Read capabilities: Physics
  • BodyPosition.maxForce: Vector3 = Vector3.new(4000, 4000, 4000)
    Deprecated: This property is a deprecated variant of BodyPosition.MaxForce which should be used instead.
    • Deprecated
    • Not replicated
    • Read capabilities: Physics
    • Load only

    Use MaxForce instead.

  • BodyPosition.position: Vector3 = Vector3.new(0, 50, 0)
    Deprecated: This is a deprecated variant of BodyPosition.Position which should be used instead.
    • Deprecated
    • Not replicated
    • Read capabilities: Physics
    • Load only

    Use Position instead.

Methods44

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
Defined byBodyPosition2
  • BodyPosition:GetLastForce(): Vector3
    Returns the last force in the object.
    • Capabilities: Physics
    Returns
    Type
    Vector3
  • BodyPosition:lastForce(): Vector3
    Deprecated: This property has been superseded by BodyPosition:GetLastForce() which should be used in new work instead,
    Returns the last force in the object.
    • Deprecated
    • Capabilities: Physics
    Returns
    Type
    Vector3

    Use GetLastForce instead.

Events11

Inherited fromObject1
Inherited fromInstance9
Defined byBodyPosition1