MotorEnabledJoint

Represents a Motor-Enabled Joint

see

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

Hierarchy

Implements

Index

Constructors

constructor

Find examples in Playground

Properties

jointData

Find examples in Playground
jointData: PhysicsJointData

The data for the physics joint

physicsJoint

Find examples in Playground
physicsJoint: any

Sets the physics joint

physicsPlugin

Find examples in Playground
physicsPlugin: IPhysicsEnginePlugin

Sets the physics plugin

type

Find examples in Playground
type: number

The type of the physics joint

Static BallAndSocketJoint

Find examples in Playground
BallAndSocketJoint: number

Ball-and-Socket joint type

Static DistanceJoint

Find examples in Playground
DistanceJoint: number

Distance-Joint type

Static Hinge2Joint

Find examples in Playground
Hinge2Joint: number

Hinge-Joint 2 type

Static HingeJoint

Find examples in Playground
HingeJoint: number

Hinge-Joint type

Static LockJoint

Find examples in Playground
LockJoint: number

Lock-Joint type

Static PointToPointJoint

Find examples in Playground
PointToPointJoint: number

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

Static PrismaticJoint

Find examples in Playground
PrismaticJoint: number

Prismatic-Joint type

Static SliderJoint

Find examples in Playground
SliderJoint: number

Slider-Joint type

Static SpringJoint

Find examples in Playground
SpringJoint: number

Spring-Joint type

Static UniversalJoint

Find examples in Playground
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 WheelJoint

Find examples in Playground
WheelJoint: number

Wheel-Joint type

Methods

executeNativeFunction

Find examples in Playground
  • 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

setLimit

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

    Parameters

    • upperLimit: number

      The upper limit of the motor

    • Optional lowerLimit: number

      The lower limit of the motor

    Returns void

setMotor

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

    Parameters

    • Optional force: number

      the force to apply

    • Optional maxForce: number

      max force for this motor.

    Returns void

Generated using TypeDoc