Options
All
  • Public
  • Public/Protected
  • All
Menu

This class represents a dual hinge physics joint (same as wheel joint)

see

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

Hierarchy

Index

Constructors

Properties

jointData: PhysicsJointData

The data for the physics joint

type: number

The type of the physics joint

BallAndSocketJoint: number

Ball-and-Socket joint type

DistanceJoint: number

Distance-Joint type

Hinge2Joint: number

Hinge-Joint 2 type

HingeJoint: number

Hinge-Joint type

LockJoint: number

Lock-Joint type

PointToPointJoint: number

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

PrismaticJoint: number

Prismatic-Joint type

SliderJoint: number

Slider-Joint type

SpringJoint: number

Spring-Joint type

UniversalJoint: number

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

WheelJoint: number

Wheel-Joint type

Accessors

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

    Returns any

  • Sets the physics joint

    Parameters

    • newJoint: any

    Returns void

  • Sets the physics plugin

    Parameters

    Returns void

Methods

  • 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

  • setLimit(upperLimit: number, lowerLimit?: number, motorIndex?: number): void
  • Set the motor limits. Attention, this function is plugin specific. Engines won't react 100% the same.

    Parameters

    • upperLimit: number

      the upper limit

    • Optional lowerLimit: number

      lower limit

    • Optional motorIndex: number

      the motor's index, 0 or 1.

    Returns void

  • setMotor(targetSpeed?: number, maxForce?: number, motorIndex?: number): void
  • Set the motor values. Attention, this function is plugin specific. Engines won't react 100% the same.

    Parameters

    • Optional targetSpeed: number

      the speed the motor is to reach

    • Optional maxForce: number

      max force for this motor.

    • Optional motorIndex: number

      motor's index, 0 or 1.

    Returns void

Legend

  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Static method

Settings

Theme