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 / help for object angle

Author
Message
iammfa
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location:
Posted: 17th Nov 2009 16:43
Hi guys,
with DarkGDK, I'm trying rotate 3d model with mouse cursor moving, i started and I do some good steps, my source code in mouse.cpp file i can now calculate and print mouse coordinates, and calculate and print the distance between mouse cursor and 3d model which centered in the screen, my questions:
- how can i calculate the angle to rotate the 3d model?
- must be use cmath.h first?
I hope guide me
greeting
iammfa

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-20 09:11:47
Your offset time is: 2024-11-20 09:11:47