three-base 2.0.121 → 2.0.122

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.
Files changed (2) hide show
  1. package/FPScontrol.js +1 -1
  2. package/package.json +1 -1
package/FPScontrol.js CHANGED
@@ -135,7 +135,7 @@ export default class FPScontrol extends EventDispatcher {
135
135
  for (let octree of octrees) {
136
136
  const result = octree.capsuleIntersect(this.playerCollider);
137
137
  if (result) {
138
- this.playerOnFloor = this.playerOnFloor || result.normal.y > 0;
138
+ this.playerOnFloor = result.normal.y > 0;
139
139
  if (!this.playerOnFloor) {
140
140
  this.playerVelocity.addScaledVector(result.normal, -result.normal.dot(this.playerVelocity));
141
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-base",
3
- "version": "2.0.121",
3
+ "version": "2.0.122",
4
4
  "description": "three 3d three-base",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"