API

Class BallAndSocketConstraint

Represents a Ball and Socket Constraint, used to simulate a joint This class is useful for simulating a joint between two bodies in a physics engine. It allows for the two bodies to move relative to each other in a way that mimics a ball and socket joint, such as a shoulder or hip joint.

The first pivot, defined locally in the first body frame

The second pivot, defined locally in the second body frame

The axis of the first body

The axis of the second body

The scene the constraint is applied to

The Ball and Socket Constraint

Hierarchy (View Summary)

Index
_pluginData: any = undefined

V2 Physics plugin private data for a physics material

  • get isCollisionsEnabled(): boolean

    Gets whether collisions are enabled for this physics object.

    Returns boolean

    true if collisions are enabled, false otherwise.

  • set isCollisionsEnabled(isEnabled: boolean): void

    Enables or disables collisions for the physics engine.

    Parameters

    • isEnabled: boolean

      A boolean value indicating whether collisions should be enabled or disabled.

    Returns void