Accurate Collision Detection with Terrains
-
- Posts: 360
- Joined: Tue Feb 10, 2004 2:20 am
- Location: Lubbock, TX
-
- Posts: 292
- Joined: Sun Mar 14, 2004 5:28 pm
- Location: Germany
- Contact:
Code: Select all
//! Calculates height of a point in the terrain
bool CTerrainSceneNode::getHeight(core::vector2d<f32> pos, f32& outHeight)
{
return false;
}
http://www.games-forge.de - Die Community für Nachwuchsprogrammierer
-
- Posts: 386
- Joined: Thu Sep 25, 2003 12:43 pm
- Contact:
Well, i'm guessing you used one of these functions?
Code: Select all
virtual void getTriangles (core::triangle3df *triangles, s32 arraySize, s32 &outTriangleCount, const core::matrix4 *transform=0)=0
virtual void getTriangles (core::triangle3df *triangles, s32 arraySize, s32 &outTriangleCount, const core::aabbox3d< f32 > &box, const core::matrix4 *transform=0)=0
virtual void getTriangles (core::triangle3df *triangles, s32 arraySize, s32 &outTriangleCount, const core::line3d< f32 > &line, const core::matrix4 *transform=0)=0
-
- Posts: 386
- Joined: Thu Sep 25, 2003 12:43 pm
- Contact: