Page 1 of 1

Chess piece movement

Posted: Tue Feb 21, 2006 2:17 pm
by napyfak
Hi,
I'm making a chess game with irrlicht, i've already created the chessboard and the pieces and i've imported them to irrlicht, now my problem is to move them!
i want to click on each piece and allow the user to move the selected piece on another position on the board.
How can i do this?????

Posted: Tue Feb 21, 2006 4:17 pm
by evo
Calculate the new endposition of the chesspiece and create a 'FlyStraightAnimator'

Posted: Wed Feb 22, 2006 8:07 am
by Heizi
May be this helps you:
http://irrlicht.sourceforge.net/phpBB2/ ... ght=#27996

you could use this ray for getting the IScene Node of the chess
pieces (or the board) with the collision.