Moving in 2D

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
adam23
Posts: 14
Joined: Fri Jun 16, 2006 6:37 pm
Contact:

Moving in 2D

Post 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
Emil_halim
Posts: 518
Joined: Tue Mar 29, 2005 9:02 pm
Location: Alex,Egypt
Contact:

Post by Emil_halim »

use orthogonal matrix for 2D movement.

i have made it in Magic3D Library.
adam23
Posts: 14
Joined: Fri Jun 16, 2006 6:37 pm
Contact:

Post 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?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post 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.
adam23
Posts: 14
Joined: Fri Jun 16, 2006 6:37 pm
Contact:

Post by adam23 »

Thanks for the help
Post Reply