@woosh/meep-engine 2.33.75 → 2.33.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,10 +30,10 @@ export function rotate_from_view(displacement_x, displacement_y, input, output)
30
30
  const i_yaw = normalize_angle_rad(input.yaw);
31
31
  const i_roll = normalize_angle_rad(input.roll);
32
32
 
33
- const d_roll = (i_roll >= (Math.PI - 0.0001) || i_roll <= -(Math.PI - 0.0001)) ? -1 : 1;
33
+ const d_roll = (i_roll >= (Math.PI / 2 - 0.0001) || i_roll <= -(Math.PI / 2 - 0.0001)) ? -1 : 1;
34
34
 
35
35
  // flip rotation axis when pitch is over 90deg in either direction, that is UP vector is pointing down
36
- const d_yaw = d_roll * ((i_pitch > Math.PI || i_pitch < -Math.PI) ? -1 : 1) * displacement_x;
36
+ const d_yaw = d_roll * ((i_pitch > Math.PI || i_pitch < 0) ? -1 : 1) * displacement_x;
37
37
 
38
38
  output.yaw = i_yaw + d_yaw;
39
39
  output.pitch = i_pitch - displacement_y;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "productName": "Meep",
6
6
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.33.75",
8
+ "version": "2.33.76",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",