DistanceJoint

A class representing a physics distance joint.

Hierarchy

Index

Constructors

constructor

Properties

jointData

jointData: PhysicsJointData

physicsJoint

physicsJoint: any

physicsPlugin

physicsPlugin: IPhysicsEnginePlugin

type

type: number

Static BallAndSocketJoint

BallAndSocketJoint: number

Static DistanceJoint

DistanceJoint: number

Static Hinge2Joint

Hinge2Joint: number

Static HingeJoint

HingeJoint: number

Static LockJoint

LockJoint: number

Static PointToPointJoint

PointToPointJoint: number

Static PrismaticJoint

PrismaticJoint: number

Static SliderJoint

SliderJoint: number

Static SpringJoint

SpringJoint: number

Static UniversalJoint

UniversalJoint: number

Static WheelJoint

WheelJoint: number

Methods

executeNativeFunction

  • executeNativeFunction(func: function): void
  • Execute a function that is physics-plugin specific.

    Parameters

    • func: function

      the function that will be executed. It accepts two parameters: the physics world and the physics joint.

        • (world: any, physicsJoint: any): void
        • Parameters

          • world: any
          • physicsJoint: any

          Returns void

    Returns void

updateDistance

  • updateDistance(maxDistance: number, minDistance?: number): void
  • Update the predefined distance.

    Parameters

    • maxDistance: number
    • Optional minDistance: number

    Returns void

Generated using TypeDoc