Skip to content

rift.util

fun bearingOf(
deltaX: Int,
deltaZ: Int
): Int
Example
fun faceAlong(npc: Npc, from: Tile3, to: Tile3) {
npc.getComponent<Position>().facingAngle = bearingOf(to.x - from.x, to.z - from.z)
}