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?
interact with object/dragging
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:
You should also look at Movement tutorial: http://irrlicht.sourceforge.net/tut004.html
Code: Select all
vector3df velocity(0,0,1);
yournode->setPosition( yournode->getPosition() + velocity );
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
ummm
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
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar