schteppe / p2.js

JavaScript 2D physics library
Other
2.63k stars 330 forks source link

Is it ok that new p2.Box().type = p2.Shape.CONVEX #324

Closed rukonmin closed 6 years ago

rukonmin commented 6 years ago

let boxShape = new p2.Box();

console.log( boxShape.type === p2.Shape.BOX ); // false

console.log( boxShape.type === p2.Shape.CONVEX ); // true

schteppe commented 6 years ago

This has already been answered here: https://github.com/schteppe/p2.js/issues/185