new physics engine - rapier instead of cannon
This commit is contained in:
@@ -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 };
|
||||
Reference in New Issue
Block a user