collision detection test problem

awss

21-10-2006 08:44:27

hii all

i am a new to nxogre, i have a question that i better explain it using an example

let say i have a character in the game and the character comes near the door (collision) then when the charecter is near the door i press a key the door opens. simple as that. so i guess i need to get notified when the character touch the door (collide) and i have to check is it the door if it is i play the open door animation.

how to do that??

betajaen

21-10-2006 09:13:37

There are plenty of ways of doing that, using collision callbacks and triggers would do it.

But you do realise it is a physics engine? You can open the door by merely walking into it, as in real-life.

awss

21-10-2006 09:18:22

but is there a tutorial in nxogre that shows how to do this (collision callback) or just collision test.

betajaen

21-10-2006 11:07:25

Yep, I can't remember the number 30x I think. It's the one with a bouncing ball.