[SOLVED] can i make interraction with map?

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
gromito
Posts: 15
Joined: Tue Feb 08, 2005 3:59 pm
Location: Clermont ferrand, FRANCE

[SOLVED] can i make interraction with map?

Post by gromito »

hello,

I want to make interaction with my map like open door or make explosion of a box. Is it possible to make that with irrlicht and if yes how?

thanks.
Last edited by gromito on Sun Feb 27, 2005 4:34 pm, edited 1 time in total.
Guest

Post by Guest »

Anything's possible...

But you'll have to do the legwork yourself.

Doors etc. are, AFAIK, not part of maps (unless those were made with bones), but would have to be scenenodes.
For opening/closing a door, you might define your own "interactive" scenenode, and when the player uses the "open" key on his keyboard, fire a short ray (see the collision tutorial) to see if he's facing an interactive object.
Of course you can make it as complex as you like: you might have buttons that are separate from the doors themselves, proximity triggers, etc.
Post Reply