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 / quite fast rotation finder,,, does that make any sense

Author
Message
Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 12th Apr 2004 22:28
heres a code i wrote for cars that control the pitch and roll according to the matrix so that your car model will never pass through the matrix very handy for hilly maps.



enjoy (sorry tried to find a car emoty for you but of well)


Work Hard; Play Harder ;
B1rD
20
Years of Service
User Offline
Joined: 21st Mar 2004
Location:
Posted: 26th Apr 2004 00:41
Dude!

This code is owning!
I'm making a renegate type game, sould be usefull for cars, tanks etc...

I'll put ur name in the credits !

Thanks.
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 28th Apr 2004 01:29
A compileable demo would be nice



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb
Balid
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 30th Apr 2004 06:37
Plugged,

You have just posted what I've been looking for, for two years now. I tryed other examples and tryed to make my own but it never worked right.

It looks close to some things I tryed myself. I'll let you know if it works once I try it out.

Thanks again for posting it.
Balid

(at least this lets me know that I'm working in the right direction.)

Balid
Phillip
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location:
Posted: 2nd May 2004 16:02
I made a demo using the function. Maybe I'm doing something wrong but the fuction works for a while the my object fall under the matrix or go into the air and if i go off the left side of the matrix I get a divided by zerro error. Check out the code (DBC)
Balid
21
Years of Service
User Offline
Joined: 21st Nov 2003
Location: MI, USA
Posted: 3rd May 2004 03:15
Plugged,

I tryed your code and got some strange angles. I'm glad that it works for others.

So I'm back to the drawing board.

Balid

Balid
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 8th May 2004 22:19
The only way i've found to get it to work is to make the object you wish to tilt correctly the limb of another object. I can't remember if i've posted this before but here it is in a handy function with a commented demo to show you how to use it It was basically lifted from from the tank demo in dbc, but works in Pro.



have fun

In the beginning, the universe was created...
This made alot of people very angry and it has been widely regarded as a bad idea...
Visit http://redeye.dbspot.com
Plugged
21
Years of Service
User Offline
Joined: 30th Nov 2002
Location: Hertfordshire
Posted: 11th May 2004 13:15
i think a problem might be the model i used to make the code is wrong and is loaded in with a 90 degree x rotation i see what happens with a different model and i'll post the demo of the function in action

Plugged


Work Hard; Play Harder ;

Login to post a reply

Server time is: 2024-11-23 21:52:17
Your offset time is: 2024-11-23 21:52:17