CamMoveToArc

class CamMoveToArc : OutgoingGameMessage

Camera move to arc packet is used to move camera to a new coordinate with finer control behind it. This packet differs from CamMoveToCycles in that it will first move through a center coordinate before going towards the destination, creating a )-shape movement. An example image of this can be seen here

Constructors

Link copied to clipboard
constructor(centerXInBuildArea: Int, centerZInBuildArea: Int, destinationXInBuildArea: Int, destinationZInBuildArea: Int, height: Int, cycles: Int, ignoreTerrain: Boolean, easing: Int)

Properties

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

the center x coordinate within the build area, in range of 0 to 103 (inclusive). This marks the middle point between the camera movement through which the camera has to go.

Link copied to clipboard

the center z coordinate within the build area, in range of 0 to 103 (inclusive). This marks the middle point between the camera movement through which the camera has to go.

Link copied to clipboard
val cycles: Int

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

Link copied to clipboard

the dest x coordinate within the build area, in range of 0 to 103 (inclusive)

Link copied to clipboard

the dest z coordinate within the build area, in range of 0 to 103 (inclusive)

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 height: Int

the height of the camera once it arrives at the destination

Link copied to clipboard

whether the camera moves along the terrain, moving up and down according to bumps in the terrain. If true, the camera will move in a straight line from the starting position towards the end position, ignoring any changes in the terrain.

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