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
Defined in
framework/physics3d/physicJoint.ts:38
jointData
• jointData: PhysicsJointData
Inherited from
type
• type: number
Inherited from
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
Defined in
framework/physics3d/physicJoint.ts:77
Hinge2Joint
â–ª Static Hinge2Joint: number = PhysicsJoint.WheelJoint
Hinge-Joint 2 type
Inherited from
Defined in
framework/physics3d/physicJoint.ts:107
HingeJoint
â–ª Static HingeJoint: number = 1
Hinge-Joint type
Inherited from
Defined in
framework/physics3d/physicJoint.ts:81
LockJoint
â–ª Static LockJoint: number = 10
Lock-Joint type
Inherited from
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
Defined in
framework/physics3d/physicJoint.ts:98
SliderJoint
â–ª Static SliderJoint: number = 4
Slider-Joint type
Inherited from
Defined in
framework/physics3d/physicJoint.ts:93
SpringJoint
â–ª Static SpringJoint: number = 9
Spring-Joint type
Inherited from
Defined in
framework/physics3d/physicJoint.ts:117
UniversalJoint
â–ª Static UniversalJoint: number = 6
Universal-Joint type
Inherited from
Defined in
framework/physics3d/physicJoint.ts:103
WheelJoint
â–ª Static WheelJoint: number = 3
Wheel-Joint type
Inherited from
Defined in
framework/physics3d/physicJoint.ts:89
Constructors
constructor
• new MotorEnabledJoint(type, jointData)
Parameters
type
number
jointData
Overrides
Defined in
framework/physics3d/physicJoint.ts:145
Methods
executeNativeFunction
â–¸ executeNativeFunction(func): 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.
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
upperLimit
number
lowerLimit?
number
Returns
void
Implementation of
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
force?
number
the force to apply
maxForce?
number
max force for this motor.
Returns
void
Implementation of
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
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
physicsPlugin
Returns
void
Inherited from
PhysicsJoint.physicsPlugin
Defined in
Last updated