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.
[SOLVED] can i make interraction with map?
[SOLVED] can i make interraction with map?
Last edited by gromito on Sun Feb 27, 2005 4:34 pm, edited 1 time in total.
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.
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.