calculateFactors

abstract fun calculateFactors(rotationTarget: RotationTarget?, currentRotation: Rotation, targetRotation: Rotation): Vec2

Calculate the factors for the rotation towards the target rotation.

Return

horizontal speed, vertical speed

Parameters

currentRotation

The current rotation

targetRotation

The target rotation