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