Finding location of ray intersection with heightmap

sipickles
Posts: 44
Joined: Thu Aug 07, 2008 6:57 am

Finding location of ray intersection with heightmap

Post by sipickles »

Hi,

I can get raycasts to hit heightmaps with ease thanks to bullet.

Is there any way to calculate the point at which a raycast intersects at btHeightFieldTerrainShape?

I'd like to know the exact btVector3 coords of the intersection?


Thanks

Simon
sipickles
Posts: 44
Joined: Thu Aug 07, 2008 6:57 am

Re: Finding location of ray intersection with heightmap

Post by sipickles »

Ah bullet is great,

I just need the collisioncallback hitPointWorld, then cross reference it with my scaled data set.

Nice