Sp3dPhysics constructor
Sp3dPhysics({})
Constructor
- isLocked : If true, Treat it as a fixed object.
- mass : The mass(kg) of the object.
- speed : The speed(m/s) of the object. Retained primarily for calculations.
- direction : The direction(Unit vector) of the object. Retained primarily for calculations.
- velocity : The velocity of the object. Used for moving objects.
- rotateAxis : The rotate axis of the object.
- angularVelocity : The angular velocity of the object.
- angle : The rotated angle of the object.
- name : Name of the action.
- others : Optional attributes that may be added for each app.
Implementation
Sp3dPhysics(
{this.isLocked = false,
this.mass,
this.speed,
this.direction,
this.velocity,
this.rotateAxis,
this.angularVelocity,
this.angle,
this.name,
this.others});