LandingPlanStep: {
    getTargetTransform: () => | { position: Vector3; rotation: Quaternion }
    | null;
    maxVelocity: { linearY: number; rotation: number };
    maxVelocityAtTarget: { linear: number; rotation: number };
    tolerance: { position: number; rotation: number };
}

One step in a plan of action for a transformable object subject to physics

Type declaration

  • getTargetTransform: () => { position: Vector3; rotation: Quaternion } | null
  • maxVelocity: { linearY: number; rotation: number }

    The maximum velocity at any point during the step

  • maxVelocityAtTarget: { linear: number; rotation: number }

    The maximum velocity when reaching the target before the step is considered complete

  • tolerance: { position: number; rotation: number }

    The tolerance margin to consider the step complete

    • position: number

      The maximum distance to the target position

    • rotation: number

      The maximum deviation between the target and current up vectors