RotationUtil

Properties

Link copied to clipboard
val gcd: Double

Functions

Link copied to clipboard

Calculate difference between two angle points

Link copied to clipboard
fun applyMouseTurnDelta(rotation: Rotation, cursorDeltaX: Double, cursorDeltaY: Double): Rotation
Link copied to clipboard
fun crosshairAngleToEntity(entity: Entity): Float

Calculates the angle between the cross-hair and the entity.

Link copied to clipboard
fun mouseTurnDelta(cursorDeltaX: Double, cursorDeltaY: Double): RotationDelta

Converts the values passed from MouseHandler.turnPlayer to the yaw/pitch delta applied by vanilla.