sunrisefe
12-03-2009 13:50:27
like in the example 1,I want display my tree on the ground, code is
but only part of my tree display on ground, much trunk is under ground:
my tree.mesh is a total tree:
what's the trouble?
position.x = Math::RangeRandom(0, 1500);
position.z = Math::RangeRandom(0, 1500);
position.y = HeightFunction::getTerrainHeight(position.x, position.z);
scale = Math::RangeRandom(0.5f, 0.6f);
treeLoader->addTree(myEntity, position, yaw, scale);
but only part of my tree display on ground, much trunk is under ground:
my tree.mesh is a total tree:
what's the trouble?