m4m.framework.MotorEnabledJoint
Last updated
Last updated
/ / / / MotorEnabledJoint
..MotorEnabledJoint
Represents a Motor-Enabled Joint
↳ MotorEnabledJoint
↳↳
↳↳
Inherited from
Defined in
Inherited from
• type: number
Inherited from
â–ª Static
BallAndSocketJoint: number
= 2
Ball-and-Socket joint type
Inherited from
Defined in
â–ª Static
DistanceJoint: number
= 0
Distance-Joint type
Inherited from
Defined in
â–ª Static
Hinge2Joint: number
= PhysicsJoint.WheelJoint
Hinge-Joint 2 type
Inherited from
Defined in
â–ª Static
HingeJoint: number
= 1
Hinge-Joint type
Inherited from
Defined in
â–ª Static
LockJoint: number
= 10
Lock-Joint type
Inherited from
Defined in
â–ª Static
PointToPointJoint: number
= 8
Point to Point Joint type. Similar to a Ball-Joint. Different in parameters
Inherited from
Defined in
â–ª Static
PrismaticJoint: number
= 5
Prismatic-Joint type
Inherited from
Defined in
â–ª Static
SliderJoint: number
= 4
Slider-Joint type
Inherited from
Defined in
â–ª Static
SpringJoint: number
= 9
Spring-Joint type
Inherited from
Defined in
â–ª Static
UniversalJoint: number
= 6
Universal-Joint type
Inherited from
Defined in
â–ª Static
WheelJoint: number
= 3
Wheel-Joint type
Inherited from
Defined in
• new MotorEnabledJoint(type
, jointData
)
Parameters
type
number
jointData
Overrides
Defined in
â–¸ 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
Defined in
â–¸ 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
â–¸ 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
• get
physicsJoint(): any
Returns
any
Implementation of
Inherited from
PhysicsJoint.physicsJoint
Defined in
• set
physicsJoint(newJoint
): void
Parameters
newJoint
any
Returns
void
Implementation of
Inherited from
PhysicsJoint.physicsJoint
Defined in
• set
physicsPlugin(physicsPlugin
): void
Parameters
physicsPlugin
Returns
void
Inherited from
PhysicsJoint.physicsPlugin
Defined in
• Protected
_physicsPlugin:
.
• jointData:
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.