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 / Ready to Copy and Past - Point Towards Function - (Made in trial version of DBC)

Author
Message
Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 19th Dec 2006 02:33 Edited at: 19th Dec 2006 02:34
<<Oops, I spelled paste wrong>>

Here is a function that works like the Point Towards Comand in EZ Rotate. It was made in the trial version of DB (I'm holding out 'till Christmas).

The Function:



In an example:



"There will always be evil, for, without evil, the good shall lose their virtue."
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 19th Dec 2006 02:52
Hey, I made one too

Your version gave me a solid FPS of 32.



My function gives an FPS of 32 as well. I guess yours is better in the sense that it doesn't turn automatically

-Mansoor Siddiquie

Ankillito
17
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 19th Dec 2006 02:57
Also, mine will work with 3 dimensions, for example, with spaceship AI. However, you must set object rotation to zyx! This is a helpful code because it simulates the enimies limited agility in not always being able to turn as fast as it needs to.

"There will always be evil, for, without evil, the good shall lose their virtue."
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 19th Dec 2006 03:44
Ahh, I see

-Mansoor Siddiquie

Login to post a reply

Server time is: 2024-11-22 23:29:03
Your offset time is: 2024-11-22 23:29:03