Gamebop / physics

Physics components for PlayCanvas
https://gamebop.github.io/docs/
3 stars 1 forks source link

Adds ability to consider scene depth per shape #73

Closed LeXXik closed 3 months ago

LeXXik commented 3 months ago

Fixes: #69

Adds ability to define whether to debug draw considers scene depth or not on a shape level.

entity.addComponent('body', { debugDraw: true, debugDrawDepth: false });

entity.body.debugDrawDepth = true; // false;