Companion
object Companion
Functions
Link copied to clipboard
Link copied to clipboard
fun rotatedCube(x: Float, y: Float, z: Float, size: Float, degreesX: Float, degreesY: Float, degreesZ: Float): Hitbox3D
fun rotatedCube(x: Int, y: Int, z: Int, size: Int, degreesX: Float, degreesY: Float, degreesZ: Float): Hitbox3D
Creates a rotated cubic hitbox defined by its starting point, size, and rotation angles.
Link copied to clipboard
fun rotatedRectangle(x: Float, y: Float, z: Float, width: Float, height: Float, depth: Float, pitch: Float, yaw: Float, roll: Float, centerX: Float = x + width / 2f, centerY: Float = y + height / 2f, centerZ: Float = z + depth / 2f): Hitbox3D
Creates a rotated rectangular hitbox defined by its minimum and maximum x, y, and z coordinates and rotation angles.
Link copied to clipboard