implement first person hand

(cherry picked from commit bfe5a2eaca2858a7ccde1df847e2148dd79f4045)
This commit is contained in:
LabyStudio
2022-05-02 02:45:24 +02:00
parent 230ea8d11e
commit 800134b26b
18 changed files with 345 additions and 114 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
export default class MathHelper {
static clamp(number, min, max) {
return Math.min(Math.max(number, min), max);
}
/**
* Returns the greatest integer less than or equal to the double argument
*/
@@ -14,7 +18,7 @@ export default class MathHelper {
static toRadians(degree) {
return degree * (Math.PI / 180);
};
}
static calculateCelestialAngle(time, partialTicks) {
let modTime = (time % 24000);