|
@@ -427,7 +427,7 @@ class RapierMovementController extends rogue_engine__WEBPACK_IMPORTED_MODULE_1__
|
|
|
}
|
|
|
this.gravityAcceleration.set(this.config.gravity.x, this.config.gravity.y, this.config.gravity.z);
|
|
|
this.velocity.add(this.gravityAcceleration.multiplyScalar(this.gravityScale * fixedStep));
|
|
|
- const nextPosition = this.bodyComponent.body.translation();
|
|
|
+ const nextPosition = this.convertRapierToThreeVec3(this.bodyComponent.body.translation());
|
|
|
const nextVelocity = this.convertRapierToThreeVec3(this.bodyComponent.body.linvel());
|
|
|
nextVelocity.x *= 1 - this.drag.x;
|
|
|
nextVelocity.y *= 1 - this.drag.y;
|