m4m.framework.IPhysicsEnginePlugin
@meta4d/engine / Exports / m4m / framework / IPhysicsEnginePlugin
Interface: IPhysicsEnginePlugin
m4m.framework.IPhysicsEnginePlugin
Implemented by
Table of contents
Methods
Properties
Methods
applyForce
â–¸ applyForce(impostor
, force
, contactPoint
): void
Parameters
Returns
void
Defined in
framework/physics3d/physicEngine.ts:229
applyImpulse
â–¸ applyImpulse(impostor
, force
, contactPoint
): void
Parameters
Returns
void
Defined in
framework/physics3d/physicEngine.ts:228
dispose
â–¸ dispose(): void
Returns
void
Defined in
framework/physics3d/physicEngine.ts:257
executeStep
â–¸ executeStep(delta
, impostors
): void
Parameters
delta
number
impostors
Returns
void
Defined in
framework/physics3d/physicEngine.ts:227
generateJoint
â–¸ generateJoint(joint
): void
Parameters
joint
Returns
void
Defined in
framework/physics3d/physicEngine.ts:232
generatePhysicsBody
â–¸ generatePhysicsBody(impostor
): void
Parameters
impostor
Returns
void
Defined in
framework/physics3d/physicEngine.ts:230
getAngularVelocity
â–¸ getAngularVelocity(impostor
): vector3
Parameters
impostor
Returns
vector3
Defined in
framework/physics3d/physicEngine.ts:240
getBodyFriction
â–¸ getBodyFriction(impostor
): number
Parameters
impostor
Returns
number
Defined in
framework/physics3d/physicEngine.ts:243
getBodyMass
â–¸ getBodyMass(impostor
): number
Parameters
impostor
Returns
number
Defined in
framework/physics3d/physicEngine.ts:242
getBodyRestitution
â–¸ getBodyRestitution(impostor
): number
Parameters
impostor
Returns
number
Defined in
framework/physics3d/physicEngine.ts:245
getBoxSizeToRef
â–¸ getBoxSizeToRef(impostor
, result
): void
Parameters
impostor
result
vector3
Returns
void
Defined in
framework/physics3d/physicEngine.ts:255
getLinearVelocity
â–¸ getLinearVelocity(impostor
): vector3
Parameters
impostor
Returns
vector3
Defined in
framework/physics3d/physicEngine.ts:239
getRadius
â–¸ getRadius(impostor
): number
Parameters
impostor
Returns
number
Defined in
framework/physics3d/physicEngine.ts:254
getTimeStep
â–¸ getTimeStep(): number
Returns
number
Defined in
framework/physics3d/physicEngine.ts:226
isSleeping
â–¸ isSleeping(impostor
): boolean
Parameters
impostor
Returns
boolean
Defined in
framework/physics3d/physicEngine.ts:248
isSupported
â–¸ isSupported(): boolean
Returns
boolean
Defined in
framework/physics3d/physicEngine.ts:234
removeJoint
â–¸ removeJoint(joint
): void
Parameters
joint
Returns
void
Defined in
framework/physics3d/physicEngine.ts:233
removePhysicsBody
â–¸ removePhysicsBody(impostor
): void
Parameters
impostor
Returns
void
Defined in
framework/physics3d/physicEngine.ts:231
setAngularVelocity
â–¸ setAngularVelocity(impostor
, velocity
): void
Parameters
impostor
velocity
vector3
Returns
void
Defined in
framework/physics3d/physicEngine.ts:238
setBodyFriction
â–¸ setBodyFriction(impostor
, friction
): void
Parameters
impostor
friction
number
Returns
void
Defined in
framework/physics3d/physicEngine.ts:244
setBodyMass
â–¸ setBodyMass(impostor
, mass
): void
Parameters
impostor
mass
number
Returns
void
Defined in
framework/physics3d/physicEngine.ts:241
setBodyRestitution
â–¸ setBodyRestitution(impostor
, restitution
): void
Parameters
impostor
restitution
number
Returns
void
Defined in
framework/physics3d/physicEngine.ts:246
setGravity
â–¸ setGravity(gravity
): void
Parameters
gravity
vector3
Returns
void
Defined in
framework/physics3d/physicEngine.ts:224
setLimit
â–¸ setLimit(joint
, upperLimit
, lowerLimit?
, motorIndex?
): void
Parameters
Returns
void
Defined in
framework/physics3d/physicEngine.ts:253
setLinearVelocity
â–¸ setLinearVelocity(impostor
, velocity
): void
Parameters
impostor
velocity
vector3
Returns
void
Defined in
framework/physics3d/physicEngine.ts:237
setMotor
â–¸ setMotor(joint
, speed
, maxForce?
, motorIndex?
): void
Parameters
Returns
void
Defined in
framework/physics3d/physicEngine.ts:252
setPhysicsBodyTransformation
â–¸ setPhysicsBodyTransformation(impostor
, newPosition
, newRotation
): void
Parameters
Returns
void
Defined in
framework/physics3d/physicEngine.ts:236
setTimeStep
â–¸ setTimeStep(timeStep
): void
Parameters
timeStep
number
Returns
void
Defined in
framework/physics3d/physicEngine.ts:225
setTransformationFromPhysicsBody
â–¸ setTransformationFromPhysicsBody(impostor
): void
Parameters
impostor
Returns
void
Defined in
framework/physics3d/physicEngine.ts:235
sleepBody
â–¸ sleepBody(impostor
): void
Parameters
impostor
Returns
void
Defined in
framework/physics3d/physicEngine.ts:247
updateDistanceJoint
â–¸ updateDistanceJoint(joint
, maxDistance
, minDistance?
): void
Parameters
Returns
void
Defined in
framework/physics3d/physicEngine.ts:251
wakeUpBody
â–¸ wakeUpBody(impostor
): void
Parameters
impostor
Returns
void
Defined in
framework/physics3d/physicEngine.ts:249
Properties
name
• name: string
Defined in
framework/physics3d/physicEngine.ts:223
world
• world: any
Defined in
Last updated