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.

Newcomers DBPro Corner / Rotate Object To Face in Direction Going

Author
Message
Siege1975
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: UK - Wiltshire
Posted: 14th Jan 2005 01:10
Does anyone know how to do this?

I;ve tried and I can't get my head around it. Basically, I've got an object wandering around a matrix, I just want it to face in the direction as it wanders about the place.

Iain
20
Years of Service
User Offline
Joined: 17th Jun 2004
Location: UK
Posted: 14th Jan 2005 02:43 Edited at: 14th Jan 2005 02:46
If you download this source code from my website, you should be able to use the same code i use in it to rotate the object as i used to rotate the camera.

Its a very small peice of code and shouldnt take long to download, its a basic first person shooter that allows you to move around a matrix, so it should be quite easy for you to see how it works and implement it in to your code.

http://www.freewebs.com/iain1

The first link didnt work so use this one and then go to the source code page.
Siege1975
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: UK - Wiltshire
Posted: 14th Jan 2005 05:49
thanks a lot, I'll try it out.

Siege1975
20
Years of Service
User Offline
Joined: 27th Jul 2004
Location: UK - Wiltshire
Posted: 15th Jan 2005 03:32
Okay, that's cool, but not actually what I was trying for and I don't see how I can convert it for my object. I need my object, the creature I have wandering around, to face in the direction it is going regardless of which way the camera is pointing.

Login to post a reply

Server time is: 2024-09-23 09:15:55
Your offset time is: 2024-09-23 09:15:55