- While the player is walking along the terrain, sometimes the triangles disappear near its feet and stuff, its just noticeable when u look around
- Sometimes the player randomly falls through the terrain...i think this is due to the above
- While the player is walking along the terrain, it sometimes gets stuck...just stops moving and you have to walk backwards...some problem with the triangle selector maybe..
Theres problems seem kinda weird and indicate that i'm probably using an innappropriate scale for the terrain or something. So has anyone else had problems like these, what scale should i set my terrain to ? heres some code snipets i use so u get an idea of what scale i'm using...
Code: Select all
terrain->setScale(core::vector3df(160, 20, 160)); //scale of the terrain
smgr->createTerrainTriangleSelector(terrain, 1); //the triangle selector
smgr->addCameraSceneNodeFPS(0, 100.0f, 500, -1, 0, 0, false); // cam
//The gravity and sphere for the camera
smgr->createCollisionResponseAnimator(
selector, camera, core::vector3df(100,500,100),
core::vector3df(0,-98,0),///gravity
core::vector3df(0,0,0));