Expand description
Vanilla Vec3 axis rotations.
Rotation helpers for DVec3 using Steel trig lookup table.
Port of net.minecraft.world.phys.Vec3’s axis rotations, with X and Z using
a different rotation direction than glam’s builtin methods.
Functions§
- cos_sin 🔒
- Returns the table-backed cosine and sine vanilla’s rotations index.
- x_rot
- Rotates the vector around the X axis and positive angles rotate +Y toward -Z
- y_rot
- Rotates the vector around the Y axis and positive angles rotate +X toward -Z
- z_rot
- Rotates the vector around the Z axis and positive angles rotate +X toward -Y