Game Development Community

Finding amount of terrain around the player.

by Matt Ahrens · in Torque 3D Professional · 08/04/2010 (4:39 am) · 2 replies

i need to be able to do a spherical cast for how much terrain is around the player, what would be the best way to do this. I have some vaque ideas, but I am not to a point where i need it, but i would like to find out how.

#1
08/04/2010 (5:55 am)
I think you'll have to define what your exactly measuring.

What does "how much terrain" mean?

It may be easier for you to define what this is for as there may be a simpler way to do what you need.
#2
08/05/2010 (12:15 am)
well i want to develop a magic system where you draw in elemental power based on where you are. So for Earth if your around hills and mounts you'll gain more then when in an open field, or flying.

one way i thought of doing it was doing a ray cast in many different dirrections, and then finding the distance to the terrian, if it hit, and then doing some math to figure out how much power you'll gain.