Gamebop / physics

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

New feature - set object layer #28

Closed LeXXik closed 5 months ago

LeXXik commented 5 months ago

PR adds an ability to change the object layer the body belongs to.

entity.addComponent('body');
body.objectLayer = 1;