Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Solution to Ground Deformation - for Racing Game

Author
Message
the Last Programmer
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Abilene, TX
Posted: 25th Oct 2005 09:54
Hi all,

I was struggling with this all night and I finally came up with a solution for rotating an object (like a car) to fit the deformations of a landscape (particularly an .x file).

Here is the code. No media necessary.



I hope it works for you to. I'm going to be using it in my next game: Freight Runner II.

Thanks

go to my website to download cool new games:

www.fishbrosentertainment.com
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 25th Oct 2005 20:34
Okay, I think it's code for tilting an object to a .X world...

I am experiencing some problems though:
- When going on straight on the cone, the front cube just disapears beneath the big one.
- When this happens, and press downkey, you can float around in the air. Not sure why...

I wish I could help, but I don't have the knowledge of how to use the vector commands in DBP. (It's coming, don't worry)

Immunity and Annihalation makes Immunihalation...
the Last Programmer
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Abilene, TX
Posted: 25th Oct 2005 21:04 Edited at: 25th Oct 2005 21:09
Hi,

Try this then:



It works better now. The first code snippet I posted required an .x file to be touching the vehicle, but not anymore.

Also, press the space key to reset the vehicle, in case anything happens.

thanks

go to my website to download cool new games:

www.fishbrosentertainment.com
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 26th Oct 2005 16:04
Much better

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2024-11-27 02:13:25
Your offset time is: 2024-11-27 02:13:25