Advertisement

Stand on a surface?

Started by July 26, 2000 07:25 PM
0 comments, last by C=64 24 years, 4 months ago
This may be a dumb question, but please bear with me: How do you make someone stand on a surface? (please note, all the nonsense I''m about to spew is completely hypothetical; I haven''t implemented any of this) The best I can come up with is to include a floor''s Y relative in the definition of each model, and a radius to define a bound sphere centered on 0, Y, 0. Then, I test for intersections between the world and my bounding sphere. If I find any intersections, I then test to see if 0, Y, 0 is coplanar and bound by any of the world''s poly''s. If so, I don''t apply a gravity vector to the model''s movement vectors. Am I anywhere near the right approach? If not, anyone mind giving me a few pointers? C=64
Look at flipcode.com:
http://www.flipcode.com/askmid/

Somebody asked exactly the same question here some time ago....

HTH,XBTC!

Edited by - XBTC on July 27, 2000 3:05:45 PM

This topic is closed to new replies.

Advertisement