new physics engine - rapier instead of cannon

This commit is contained in:
2025-08-29 16:03:48 +03:00
parent 7eb7eb068a
commit a6827f4ddb
7 changed files with 625 additions and 97 deletions
+7
View File
@@ -11,10 +11,13 @@ class PointerControls {
this.moveBackward = false;
this.moveLeft = false;
this.moveRight = false;
this.moveUp = false;
this.moveDown = false;
this.rotateLeft = false;
this.rotateRight = false;
this.canJump = false;
this.velocity = new Vector3();
this.direction = new Vector3();
@@ -163,6 +166,10 @@ class PointerControls {
};
}
moving(){
return this.moveForward || this.moveBackward || this.moveLeft || this.moveRight;
}
}
export { PointerControls };