Gamebop / physics

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

Collide shape query #38

Closed LeXXik closed 5 months ago

LeXXik commented 5 months ago

Adds new feature - collide shape query.

You can now create a shape and test if it collides with something in the world:

const shapeIndex = app.physics.createShape(SHAPE_SPHERE);
app.physics.collideShape(shapeIndex, shapePosition, shapeRotation, callback);