Options
All
  • Public
  • Public/Protected
  • All
Menu

Class 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

see

https://doc.babylonjs.com/how_to/using_the_physics_engine

Hierarchy

Index

Constructors

constructor

  • Initializes the physics joint

    Parameters

    • type: number

      The type of the physics joint

    • jointData: PhysicsJointData

      The data for the physics joint

    Returns PhysicsJoint

Properties

jointDataSearch playground for jointData

jointData: PhysicsJointData

The data for the physics joint

typeSearch playground for type

type: number

The type of the physics joint

Static BallAndSocketJointSearch playground for BallAndSocketJoint

BallAndSocketJoint: number

Ball-and-Socket joint type

Static DistanceJointSearch playground for DistanceJoint

DistanceJoint: number

Distance-Joint type

Static Hinge2JointSearch playground for Hinge2Joint

Hinge2Joint: number

Hinge-Joint 2 type

Static HingeJointSearch playground for HingeJoint

HingeJoint: number

Hinge-Joint type

Static LockJointSearch playground for LockJoint

LockJoint: number

Lock-Joint type

Static PointToPointJointSearch playground for PointToPointJoint

PointToPointJoint: number

Point to Point Joint type. Similar to a Ball-Joint. Different in parameters

Static PrismaticJointSearch playground for PrismaticJoint

PrismaticJoint: number

Prismatic-Joint type

Static SliderJointSearch playground for SliderJoint

SliderJoint: number

Slider-Joint type

Static SpringJointSearch playground for SpringJoint

SpringJoint: number

Spring-Joint type

Static UniversalJointSearch playground for UniversalJoint

UniversalJoint: number

Universal-Joint type ENERGY FTW! (compare with this - @see http://ode-wiki.org/wiki/index.php?title=Manual:_Joint_Types_and_Functions)

Static WheelJointSearch playground for WheelJoint

WheelJoint: number

Wheel-Joint type

Accessors

physicsJoint

  • get physicsJoint(): any
  • set physicsJoint(newJoint: any): any
  • Gets the physics joint

    Returns any

  • Sets the physics joint

    Parameters

    • newJoint: any

    Returns any

physicsPlugin

  • set physicsPlugin(physicsPlugin: IPhysicsEnginePlugin): any
  • Sets the physics plugin

    Parameters

    • physicsPlugin: IPhysicsEnginePlugin

    Returns any

Methods

executeNativeFunctionSearch playground for executeNativeFunction

  • executeNativeFunction(func: (world: any, physicsJoint: any) => void): void
  • Execute a function that is physics-plugin specific.

    Parameters

    • func: (world: any, physicsJoint: any) => void

      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

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method