x


Hovering and even on terrain

ok so im making something very similar to the one in this video

http://www.youtube.com/watch?v=3xWfBgtI_BA

How is it posible to get a floating car similar to that and making it even on terrain all terrain? I've been working on this for a while but can't find anything that has actually helped.

more ▼

asked May 07 '12 at 01:40 AM

Ampler Games gravatar image

Ampler Games
108 19 30 34

I really need on this I have no idea what to do.

May 09 '12 at 02:59 AM Ampler Games

Where are you in the process? Do you have code? do you have an idea about the code?

Seems to me if you can make a car that drives on terrain then you could put the car code in an invisible object and put the hovercraft as a child that is offset above the ground...

May 09 '12 at 05:31 AM perchik

I havent got any code but I have all the models and stuff but im just not sure on where to start with this. I'm thinking I should be using raycasting to do this but I'm not sure.

May 13 '12 at 10:39 PM Ampler Games
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Yes you could use a raycast in this case to see how the normals are aligned beneath the hover craft. The rest can be done with additive animations and/or physics. Easiest would be to accomplish this with the physics engine. Start off by making a rigidbody that floats above the ground no matter where the ground's current height is, from there just add functionality to steer.

You can sample the height data at the current position from a terrain and rotate towards the current normal - using the physics engine you'd have forces that pushes the rigidbody into angle.

more ▼

answered May 14 '12 at 12:53 AM

save gravatar image

save
8.2k 22 31 62

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x55
x1

asked: May 07 '12 at 01:40 AM

Seen: 416 times

Last Updated: May 14 '12 at 12:53 AM