» Home » OgreBullet » Page 1
OgreBullet incorrect HeightmapCollisionShape shape scale?
Category : Programming Languages

I am trying to load a HeightmapTerrainShape in OgreBullet by (mostly) using the demo code, but my terrain mesh is offset from the HeightmapTerrainShape. I have no clue why this is happening. This is my code:

void TerrainLoader::setTerrainPhysics(Ogre::Image *imgPtr)
unsigned page_size = terrainGroup->getTerrainSize();
Ogre::Vector3 terrainScale(4096 /

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .