m4m.framework.MotorEnabledJoint

@meta4d/engine / Exports / m4m / framework / MotorEnabledJoint

Class: MotorEnabledJoint

m4m.framework.MotorEnabledJoint

Represents a Motor-Enabled Joint

Hierarchy

Implements

Table of contents

Properties

Constructors

Methods

Accessors

Properties

_physicsPlugin

Protected _physicsPlugin: IPhysicsEnginePlugin

Inherited from

PhysicsJoint._physicsPlugin

Defined in

framework/physics3d/physicJoint.ts:38


jointData

jointData: PhysicsJointData

Inherited from

PhysicsJoint.jointData


type

type: number

Inherited from

PhysicsJoint.type


BallAndSocketJoint

Static BallAndSocketJoint: number = 2

Ball-and-Socket joint type

Inherited from

PhysicsJoint.BallAndSocketJoint

Defined in

framework/physics3d/physicJoint.ts:85


DistanceJoint

Static DistanceJoint: number = 0

Distance-Joint type

Inherited from

PhysicsJoint.DistanceJoint

Defined in

framework/physics3d/physicJoint.ts:77


Hinge2Joint

Static Hinge2Joint: number = PhysicsJoint.WheelJoint

Hinge-Joint 2 type

Inherited from

PhysicsJoint.Hinge2Joint

Defined in

framework/physics3d/physicJoint.ts:107


HingeJoint

Static HingeJoint: number = 1

Hinge-Joint type

Inherited from

PhysicsJoint.HingeJoint

Defined in

framework/physics3d/physicJoint.ts:81


LockJoint

Static LockJoint: number = 10

Lock-Joint type

Inherited from

PhysicsJoint.LockJoint

Defined in

framework/physics3d/physicJoint.ts:121


PointToPointJoint

Static PointToPointJoint: number = 8

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

Inherited from

PhysicsJoint.PointToPointJoint

Defined in

framework/physics3d/physicJoint.ts:112


PrismaticJoint

Static PrismaticJoint: number = 5

Prismatic-Joint type

Inherited from

PhysicsJoint.PrismaticJoint

Defined in

framework/physics3d/physicJoint.ts:98


SliderJoint

Static SliderJoint: number = 4

Slider-Joint type

Inherited from

PhysicsJoint.SliderJoint

Defined in

framework/physics3d/physicJoint.ts:93


SpringJoint

Static SpringJoint: number = 9

Spring-Joint type

Inherited from

PhysicsJoint.SpringJoint

Defined in

framework/physics3d/physicJoint.ts:117


UniversalJoint

Static UniversalJoint: number = 6

Universal-Joint type

Inherited from

PhysicsJoint.UniversalJoint

Defined in

framework/physics3d/physicJoint.ts:103


WheelJoint

Static WheelJoint: number = 3

Wheel-Joint type

Inherited from

PhysicsJoint.WheelJoint

Defined in

framework/physics3d/physicJoint.ts:89

Constructors

constructor

new MotorEnabledJoint(type, jointData)

Parameters

Name
Type

type

number

Overrides

PhysicsJoint.constructor

Defined in

framework/physics3d/physicJoint.ts:145

Methods

executeNativeFunction

executeNativeFunction(func): void

Execute a function that is physics-plugin specific.

Parameters

Name
Type
Description

func

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

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

Returns

void

Inherited from

PhysicsJoint.executeNativeFunction

Defined in

framework/physics3d/physicJoint.ts:66


setLimit

setLimit(upperLimit, lowerLimit?): void

Set the motor's limits. Attention, this function is plugin specific. Engines won't react 100% the same.

Parameters

Name
Type

upperLimit

number

lowerLimit?

number

Returns

void

Implementation of

IMotorEnabledJoint.setLimit

Defined in

framework/physics3d/physicJoint.ts:163


setMotor

setMotor(force?, maxForce?): void

Set the motor values. Attention, this function is plugin specific. Engines won't react 100% the same.

Parameters

Name
Type
Description

force?

number

the force to apply

maxForce?

number

max force for this motor.

Returns

void

Implementation of

IMotorEnabledJoint.setMotor

Defined in

framework/physics3d/physicJoint.ts:155

Accessors

physicsJoint

get physicsJoint(): any

Returns

any

Implementation of

IMotorEnabledJoint.physicsJoint

Inherited from

PhysicsJoint.physicsJoint

Defined in

framework/physics3d/physicJoint.ts:44

set physicsJoint(newJoint): void

Parameters

Name
Type

newJoint

any

Returns

void

Implementation of

IMotorEnabledJoint.physicsJoint

Inherited from

PhysicsJoint.physicsJoint

Defined in

framework/physics3d/physicJoint.ts:48


physicsPlugin

set physicsPlugin(physicsPlugin): void

Parameters

Name
Type

Returns

void

Inherited from

PhysicsJoint.physicsPlugin

Defined in

framework/physics3d/physicJoint.ts:57

Last updated