To control NPC to face a target gradually

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
smso
Posts: 246
Joined: Fri Jun 04, 2010 3:28 pm
Location: Hong Kong

To control NPC to face a target gradually

Post by smso »

Screenshot:
http://code.google.com/p/irrcodes/downl ... enshot.png

Download:
http://code.google.com/p/irrcodes/downl ... ontrol.zip

To compile
==========
Your have to change a few (#define) params to point to the proper directories, e.g.

makefile
--------

Code: Select all

    IRRLICHT_DIR = /home/smso/downloads/irrlicht/irrlicht-svn


main.cpp
--------

Code: Select all

    #define IRRLICHT_DIR "/home/smso/downloads/irrlicht/irrlicht-svn/"


To run program
==============
./r


Press
'F5' to turn fairy to face the box
'A' and 'D' to move the box
'ESC' to quit


Regards,
smso
Post Reply