Before the fix (for terrain of size 5x2). First picture - Scene queries, second - RGL.
The minimal point of the mesh had to be adjusted as it is in the TerrainPhysicsColliderComponent:
After the fix (for terrain of size 5x5). First picture - Scene queries, second - RGL.
Note:Upon further examination, the physics collider does not cover the same area as the rendered terrain mesh. This fix ensures only that the terrain mesh generated by the RGL gem aligns with the heightfield collider of the terrain, not the rendered geometry.
This pr aims to fix #35.
Before the fix (for terrain of size 5x2). First picture - Scene queries, second - RGL.
The minimal point of the mesh had to be adjusted as it is in the
TerrainPhysicsColliderComponent
:After the fix (for terrain of size 5x5). First picture - Scene queries, second - RGL.
Note: Upon further examination, the physics collider does not cover the same area as the rendered terrain mesh. This fix ensures only that the terrain mesh generated by the RGL gem aligns with the heightfield collider of the terrain, not the rendered geometry.