Sp3dPhysics constructor

Sp3dPhysics({
  1. bool isLocked = false,
  2. double? mass,
  3. double? speed,
  4. Sp3dV3D? direction,
  5. Sp3dV3D? velocity,
  6. Sp3dV3D? rotateAxis,
  7. double? angularVelocity,
  8. double? angle,
  9. String? name,
  10. Map<String, dynamic>? others,
})

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});