Skip to content
Roblox API Reference

RodConstraint

Keeps two attachments separated by its defined Length.
Memory category
BaseParts
Own members
6
Inherited members
83
Subclasses
0
Siblings
18

Properties35

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 byRodConstraint6

Property categoryAppearance

  • RodConstraint.Thickness: number = 0.100000001
    The visualized thickness of the RodConstraint.
    • Read capabilities: Physics
    • Simulation access

Property categoryDerived

  • RodConstraint.CurrentDistance: number = 0
    The current distance between the constraint's Attachments.
    • Read only
    • Read capabilities: Physics
    • Save only
    • Simulation access

Property categoryLimits

  • RodConstraint.LimitAngle0: number = 90
    The maximum angle between the rod and Attachment0 when LimitsEnabled is true.
    • Read capabilities: Physics
    • Simulation access
  • RodConstraint.LimitAngle1: number = 90
    The maximum angle between the rod and Attachment1 when LimitsEnabled is true.
    • Read capabilities: Physics
    • Simulation access

Property categoryRod

  • RodConstraint.Length: number = 5
    The distance apart at which the constraint attempts to keep its Attachments.
    • Read capabilities: Physics
    • Simulation access
  • RodConstraint.LimitsEnabled: boolean = false
    Determines whether LimitAngle0 and LimitAngle1 control the angles between the rod and the respective attachments.
    • 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