The simplest method I know of.
you have a 2d array, say 10 by 10
in that array you hold height values.
each cell is how far your avatar can move in a given turn
when your avatar moves, then you get the data from that cell and affect the
avatar's height.
Okay, what I just want the avatar to move, but not be governed by cell movement?
The interpolate where you are at. Say that the avatar starts at the
center of the grid.
When the avatar moves, interpolate to which cell the avatar is most
likely in, and use that height value. Or, you could find where in the array the
avatar is in, then interpolate between the cells to find the exact height that
the avatar would be in.
Scott
Scott Decker
Research Scientist
Pacific Northwest National Labs
[EMAIL PROTECTED]
please feed the squirrels
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".