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
impostor
force
vector3
contactPoint
vector3
Returns
void
Defined in
framework/physics3d/physicEngine.ts:229
applyImpulse
▸ applyImpulse(impostor
, force
, contactPoint
): void
Parameters
impostor
force
vector3
contactPoint
vector3
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
joint
upperLimit
number
lowerLimit?
number
motorIndex?
number
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
joint
speed
number
maxForce?
number
motorIndex?
number
Returns
void
Defined in
framework/physics3d/physicEngine.ts:252
setPhysicsBodyTransformation
▸ setPhysicsBodyTransformation(impostor
, newPosition
, newRotation
): void
Parameters
impostor
newPosition
vector3
newRotation
quaternion
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
joint
maxDistance
number
minDistance?
number
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