Sp3dCameraRotationController constructor

Sp3dCameraRotationController({
  1. double rotationSpeed = 1.0,
  2. Sp3dV2D sp = _zero,
  3. Sp3dV3D? axis,
  4. Sp3dV2D diff = _zero,
  5. Sp3dV2D lastDiff = _zero,
})

Constructor

  • rotationSpeed : The rotation speed of the camera relative to the amount of swipe by the user.
  • sp : The drag start position. No need to specify in normal cases.
  • axis : Rotation axis. No need to specify in normal cases.
  • diff : Parameter for calculation of rotation. No need to specify in normal cases.
  • lastDiff : Parameter for calculation of rotation. No need to specify in normal cases.

Implementation

Sp3dCameraRotationController(
    {this.rotationSpeed = 1.0,
    this.sp = _zero,
    Sp3dV3D? axis,
    this.diff = _zero,
    this.lastDiff = _zero}) {
  this.axis = axis ?? Sp3dV3D(0, 0, 0);
}