I would like to set an offset in the collision component. That would prevent me from adding a child with a collider and would also make scripting easier.
I thought I had seen this suggestion before, but unfortunately I didn’t see the option in the upcoming version of PlayCanvas.
I think it’s a valid request. The workaround at the moment is to have the rigid body on the parent and the model on the child. This means that the model follows the simulation of the rigid body
Yes, that’s how I do it now, but that is far from ideal. This creates the necessary clutter in both the editor and the script. Is it possible to add an offset option in the collision component or is it not that easy?
Thanks for the tip @LeXXik. But if no one supports the request with a like or response then I’m probably the only one who wants it and it won’t be added anytime soon.
It’s kind of both actually. First, we need the engine to support it. Then it needs to be exposed in the Editor UI somehow.
An open source contributor already had a go at implementing this:
Unfortunately, they weren’t able to address my concerns about performance so it was never completed and merged.
An original feature request for this was actually logged by me waaaay back in 2016:
Since it can be worked around using the parent-child technique you mentioned, it was seen as relatively low priority. But I think we’re getting closer to the point where we should implement this feature.
Feel free to subscribe/comment/react to either of those pages on GitHub.
Hay @Will, I have placed a comment on your request because it has a (for me) clearer description, only I can no longer find your request in the list of open request…