interact with object/dragging

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
neo_hito
Posts: 3
Joined: Wed Sep 05, 2007 4:33 am

interact with object/dragging

Post by neo_hito »

Hi, i'm trying to use a wii remote to freely control a 3d object (which is dragging the object around)

i've got the wiimote inputs covered.. it could act like a mouse.

but how do i go about controlling the object's movement in irrlicht?
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

You control it by seting its position: yournode->setPosition(vector3df). There is also vector3df yournode->getPosition() so to move your object using movement vector you can do:

Code: Select all

vector3df velocity(0,0,1);
yournode->setPosition( yournode->getPosition() + velocity );
You should also look at Movement tutorial: http://irrlicht.sourceforge.net/tut004.html
neo_hito
Posts: 3
Joined: Wed Sep 05, 2007 4:33 am

Post by neo_hito »

:D thanks. i've found my solution from Irrlicht Framework's physicTest
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

ummm

Post by 3DModelerMan »

Just curious, what are you using for wiimote input?.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Post Reply