Page 1 of 1

Moving in 2D

Posted: Wed Jun 28, 2006 6:50 pm
by adam23
I have spent the last hour searching for information on moving 2D objects with no luck.

Do I have to set up an Event Receiver when just moving 2D objects. I guess where I get lost is trying to add a 2D object to a node. Does anyone have an easy way to detect input for 2D objects? Thanks in advance

Adam

Posted: Wed Jun 28, 2006 6:54 pm
by Emil_halim
use orthogonal matrix for 2D movement.

i have made it in Magic3D Library.

Posted: Wed Jun 28, 2006 9:07 pm
by adam23
I have another question. I know DirectInput, can I incorporate that into my program instead of using the event receiver? If this is possible, is there a way to get a handle to the current window?

Posted: Wed Jun 28, 2006 9:13 pm
by hybrid
Yes you can, but you should know general architecure of event receivers because you'll have to pass events.
Read the win32-window example.

Posted: Thu Jun 29, 2006 12:11 am
by adam23
Thanks for the help