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