Closed grimko closed 3 years ago
The example code for Rapier2D in the JS section cannot work.
This line:
console.log("Rigid-body position: ", position.x, position.y, position.z);
Has to be changed to:
console.log("Rigid-body position: ", position.x, position.y);
Because position.z does not exist in the 2D coordinates system.
position.z
Well spotted. Thanks!
The example code for Rapier2D in the JS section cannot work.
This line:
Has to be changed to:
Because
position.z
does not exist in the 2D coordinates system.