Spaces:
Sleeping
Sleeping
| export type FacingDirection = | |
| | "front" | |
| | "back" | |
| | "left" | |
| | "right" | |
| | "top" | |
| | "bottom"; | |
| export const Rotations: Record<FacingDirection, [number, number, number]> = { | |
| front: [0, 0, 0], | |
| back: [0, Math.PI, 0], | |
| left: [0, -Math.PI / 2, 0], | |
| right: [0, Math.PI / 2, 0], | |
| top: [-Math.PI / 2, 0, 0], | |
| bottom: [Math.PI / 2, 0, 0], | |
| }; | |