rotationManager.onRotate
Parameters
onUpdate
Returns
Example
rotationManager.onRotate(() => {
// Simple aim step
rotationManager.rotate(targetYaw, targetPitch, 8.0);
});Last updated
onRotate(
onUpdate):void
Register the main rotation callback. This is where you call rotate().
Function
Function invoked every tick.
void
rotationManager.onRotate(() => {
// Simple aim step
rotationManager.rotate(targetYaw, targetPitch, 8.0);
});Last updated