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.

Dark GDK / How To Make An Object Face Another Object

Author
Message
kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 20th Apr 2011 08:40
I'm trying to make an object face another object and this code looks like it should work but the objects face a completely different direction.

I have a function that sends the model number of the object im trying to rotate, and the object im trying to rotate it towards:


I'm not sure if I should be using X & Z or X & Y or Y & Z or what, maybe my equation is completely off, i'm not sure but they don't face the object, any suggestions?
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 20th Apr 2011 10:53


Cheers,

RedEye

kklouzal
15
Years of Service
User Offline
Joined: 15th May 2009
Location: Arizona
Posted: 21st Apr 2011 04:45
xD thats me trying to overthink things as usual, thanks much!

Login to post a reply

Server time is: 2024-11-19 10:40:57
Your offset time is: 2024-11-19 10:40:57