PhysicsJoint

This is a holder class for the physics joint created by the physics plugin. It holds a set of functions to control the underlying 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

Generated using TypeDoc