Collision box starting point

Hello, is there any way for me to adjust the starting point of my collision box I’m trying to adjust the collision size, but it always starts at the bottom instead of in the middle

Hi @Miguel,

This is currently not supported, there is a pull request in the engine to add support for that so expect it soon!

At the moment the work around is to use a child entity as collider so you can move it around and tweak the offset. If the rigid body needs to be on the parent entity just set the parent collider to Compound. It will pick up any child colliders provided.

2 Likes

how can I add child entity as a collider?

Check this manual page on compound colliders, on how child entities are used to create collision shapes with an offset:

https://developer.playcanvas.com/en/user-manual/physics/compound-shapes/

It includes also a link to an example project.

1 Like

Thank you so much!

1 Like