Hi
I am trying to apply the principle of camera collision on extruded shapes along what is described in the doc here: Cameras, Mesh Collisions and Gravity - Babylon.js Documentation
I have an issue when I am using ExtrudePolygon in place of the simple box used in the doc.
When colliding the extrudedPolygon, the camera is actually entering the shape and is stucked to it. The camera cannot escape the shape any more.
While on the other side, when colliding the box, the camera is remaining on the box surface and can go back on the initial position.
Here is a simple PG illustrating the issue: https://www.babylonjs-playground.com/#U8MEB0#173
On the right, the box that is reacting “correctly” to the collision.
On the left, the extruded shape that is trapping the camera on collision.
The behavior looks strange and I am wondering whether it is a bug or a feature.
How can I solve this?
My need is to have a parametric shape with proper collision behavior.
Thanks for the help!