CannonJSPlugin class
class CannonJSPlugin
- Implemented types
- Annotations
-
- @JS()
Constructors
- CannonJSPlugin([bool _useDeltaForWorldStep, num iterations, dynamic cannonInjection])
Properties
Methods
-
applyForce(
PhysicsImpostor impostor, Vector3 force, Vector3 contactPoint) → void -
applyImpulse(
PhysicsImpostor impostor, Vector3 force, Vector3 contactPoint) → void -
dispose(
) → void -
executeStep(
num delta, List< PhysicsImpostor> impostors) → void -
generateJoint(
PhysicsImpostorJoint joint) → void -
generatePhysicsBody(
PhysicsImpostor impostor) → void -
getAngularVelocity(
PhysicsImpostor impostor) → Vector3 -
getBodyFriction(
PhysicsImpostor impostor) → num -
getBodyMass(
PhysicsImpostor impostor) → num -
getBodyRestitution(
PhysicsImpostor impostor) → num -
getBoxSizeToRef(
PhysicsImpostor impostor, Vector3 result) → void -
getLinearVelocity(
PhysicsImpostor impostor) → Vector3 -
getRadius(
PhysicsImpostor impostor) → num -
getTimeStep(
) → num -
isSupported(
) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
raycast(
Vector3 from, Vector3 to) → PhysicsRaycastResult -
removeJoint(
PhysicsImpostorJoint joint) → void -
removePhysicsBody(
PhysicsImpostor impostor) → void -
setAngularVelocity(
PhysicsImpostor impostor, Vector3 velocity) → void -
setBodyFriction(
PhysicsImpostor impostor, num friction) → void -
setBodyMass(
PhysicsImpostor impostor, num mass) → void -
setBodyRestitution(
PhysicsImpostor impostor, num restitution) → void -
setGravity(
Vector3 gravity) → void -
setLimit(
IMotorEnabledJoint joint, num upperLimit, [num lowerLimit, num motorIndex]) → void -
setLinearVelocity(
PhysicsImpostor impostor, Vector3 velocity) → void -
setMotor(
IMotorEnabledJoint joint, num speed, [num maxForce, num motorIndex]) → void -
setPhysicsBodyTransformation(
PhysicsImpostor impostor, Vector3 newPosition, Quaternion newRotation) → void -
setTimeStep(
num timeStep) → void -
setTransformationFromPhysicsBody(
PhysicsImpostor impostor) → void -
sleepBody(
PhysicsImpostor impostor) → void -
syncMeshWithImpostor(
AbstractMesh mesh, PhysicsImpostor impostor) → void -
toString(
) → String -
A string representation of this object.
inherited
-
updateDistanceJoint(
PhysicsJoint joint, num maxDistance, [num minDistance]) → void -
wakeUpBody(
PhysicsImpostor impostor) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited