rotationManager.rotate

rotate(yaw, pitch, speed): boolean

Request a smooth rotation toward the given yaw/pitch at the given speed (degrees per tick). Returns true when the target is reached this call.

Parameters

yaw

number

Target yaw in degrees.

pitch

number

Target pitch in degrees.

speed

number

Max step (deg/tick).

Returns

boolean

Example

Last updated