Hi, thanks for the great physics engine. I found this issue while working with heightmaps created using data from a std::vector. Below I've attached some extra information.
Issue: Heightmaps collision detection "stops" working when we set the position of the heightmap using either setPosition or setPose.
Behaviour: See gifs below. When it fails, there seems to be a collider below the actual graphical object (look at the capsule in the middle as it bounces on something invisible).
Using hm->setPosition (collision fails)
Using centerX, centerY
This happens with both the constructor from std::vector data, and the one using TerrainProperties.
Note: A workaround I'm using is to set both centerX and centerY with the x-y position required, and offset all my heights by the z-position I wanted the heightmap to be. So far it works ok, but if using TerrainProperties, there's no offset parameter exposed (as in the fromPng constructor), so in that case I can't place the heightmap exactly where I need it.
Hi, thanks for the great physics engine. I found this issue while working with heightmaps created using data from a std::vector. Below I've attached some extra information.
Using hm->setPosition (collision fails)
Using centerX, centerY
This happens with both the constructor from std::vector data, and the one using TerrainProperties.
Note: A workaround I'm using is to set both centerX and centerY with the x-y position required, and offset all my heights by the z-position I wanted the heightmap to be. So far it works ok, but if using TerrainProperties, there's no offset parameter exposed (as in the fromPng constructor), so in that case I can't place the heightmap exactly where I need it.