Skip to content
Roblox API Reference

SlidingBallConstraint

The base class for constraints that allow their attachments to slide along an axis.
  • Not creatable
Memory category
BaseParts
Own members
15
Inherited members
83
Subclasses
2
Siblings
18

Properties44

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Inherited fromConstraint6

Property categoryAppearance

Property categoryAttachments

Property categoryBehavior

  • Indicates if the constraint is currently active in the world.
    • Read only
    • Read capabilities: Physics
    • Simulation access
  • Toggles whether or not the constraint is enabled.
    • Read capabilities: Physics
    • Simulation access
Defined bySlidingBallConstraint15

Property categoryAppearance

  • SlidingBallConstraint.Size: number
    The constraint's visualized size.
    • Read capabilities: Physics
    • Simulation access

Property categoryDerived

  • SlidingBallConstraint.CurrentPosition: number
    The current offset between the constraint's Attachments.
    • Read only
    • Read capabilities: Physics
    • Save only
    • Simulation access

Property categoryLimits

  • SlidingBallConstraint.LowerLimit: number
    The lower positional limit along the X axis of Attachment0 if LimitsEnabled is true.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.Restitution: number
    The elasticity of the constraint's Attachments when they reach the end of the range specified by UpperLimit and LowerLimit, assuming LimitsEnabled is set to true.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.UpperLimit: number
    The upper positional limit along the X axis of Attachment0 if LimitsEnabled is true.
    • Read capabilities: Physics
    • Simulation access

Property categoryMotor

  • SlidingBallConstraint.MotorMaxAcceleration: number
    The constraint's maximum acceleration when ActuatorType is set to Motor as the constraint attempts to reach its desired Velocity.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.MotorMaxForce: number
    The constraint's maximum force when ActuatorType is set to Motor, as the constraint attempts to reach its desired Velocity.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.Velocity: number
    The constraint's attempted velocity when ActuatorType is set to Motor. Measured in studs per second.
    • Read capabilities: Physics
    • Simulation access

Property categoryServo

  • SlidingBallConstraint.LinearResponsiveness: number
    Specifies the "sharpness" of the linear servo motor in reaching the TargetPosition.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.ServoMaxForce: number
    The constraint's maximum force when ActuatorType is set to Servo, as the constraint attempts to reach its desired Speed.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.Speed: number
    The constraint's desired speed when ActuatorType is set to Servo, as the constraint translates towards its TargetPosition. Measured in studs per second.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.TargetPosition: number
    The constraint's attempted target position when ActuatorType is set to Servo. Measured in studs.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.SoftlockServoUponReachingTarget: boolean
    Deprecated: This property should not be used in new work.
    • Deprecated
    • Read capabilities: Physics
    • Simulation access

Property categorySlider

  • SlidingBallConstraint.ActuatorType: Enum.ActuatorType
    Sets whether the translation of the SlidingBallConstraint is actuated and, if so, what kind of actuation.
    • Read capabilities: Physics
    • Simulation access
  • SlidingBallConstraint.LimitsEnabled: boolean
    Sets whether the SlidingBallConstraint will limit the range of translation.
    • Read capabilities: Physics
    • Simulation access

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
Inherited fromConstraint2

Events10

Inherited fromObject1
Inherited fromInstance9