Advertisement

In need of ideas!

Started by March 11, 2003 05:01 AM
3 comments, last by Maxwan 21 years, 11 months ago
Hi. Not that I need a code or anything like that, I''ll make my own later. But I need some ideas from you. Huuh, well, when you''re walking around in quake and all other games the height of the world isn''t the same all the time, ofcourse. I''ve made a world where my object is going to "walk" on the ground all the time so I need some advice how you think I should make it. To get it more a challange for you, the object is quite big and can''t stand straight up all the time. Like driving a car up for a hill, the front wheels are higher up then the lower... I hope you get what I mean =)
Hmmm... I didn''t get quite what you wanted to do, but...

There are a few good sphere collision tutorials that allow you to move objects up hills, like that car example, without them going through the hill, or anything like that.

Hope this helps.
Advertisement
I''ve seen lesson30 ofcourse, and that''s not the thing I was looking for. First of all, I don''t need something as complicated as that and second, I don''t need a tutorial. What I need is some advice from you guys, if you''ve done a thing like my "car not driving throught a the hill" or something like that...
LMAO! You do need a tutorial. there is a great one on gametutorials.com that will give u the "advice" you are looking for.

Dustin Davis
Owner / CEO
Programmers Unlimited
www.Programmers-Unlimited.com
Dustin DavisOwner / CEOProgrammers Unlimitedwww.Programmers-Unlimited.com
Since you said it will always be on the ground, use a height map. It is easy to make, and easy to find height.

To make a car move according to it:

first find the height of the center of the bottom of the car and put the car there.
then find the height of the front of it, find the angle of elevation/depression and rotate.
finally, do the same for the side rotation as for the front.

it''s not perfect but very, very easy to do without tutorials. It''s all basic math with a bit of trig.

This topic is closed to new replies.

Advertisement