CamRotateTo

class CamRotateTo : OutgoingGameMessage

Cam rotate to is used to make the camera look towards an angle relative to the current camera angle. One way to think of this packet is that it adds values to the x and y angles of the camera.

Constructors

Link copied to clipboard
constructor(pitch: Int, yaw: Int, cycles: Int, easing: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard
val cycles: Int

the duration of the movement in client cycles (20ms/cc)

Link copied to clipboard

the camera easing function, allowing for finer control over the way it moves from the start coordinate to the end.

Link copied to clipboard
val pitch: Int

the x angle of the camera to set to. Note that the angle is coerced into a range of 128..383, and incorrectly excludes the third and fifth least significant bits before doing so (by doing pitch& 2027, rather than 2047).

Link copied to clipboard
val yaw: Int

the x angle of the camera to set to. Note that the angle incorrectly excludes the third and fifth least significant bits (by doing pitch& 2027, rather than 2047).

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String