Getting it to kill the object ur bullet shoots?

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
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Getting it to kill the object ur bullet shoots?

Post by Spartacus »

Im basically trying to figure out how to determain if the bullet hits a md2 model, and how to determain that it hit that model, and how to like make the model animate to a death animation once shot? Does anyone know how to do this yet or is it not yet availible to accomplish?
buhatkj
Posts: 444
Joined: Fri Dec 12, 2003 4:53 am
Contact:

an idea, not a solution...

Post by buhatkj »

if you look in the code from the collision example, where they do the part with the picking, and it disables the lighting of whichever model your mouse is over...you could basically take that picking code and instead tell it to mark the character as dead, and set their animation to dying. of course, that means your bullets have precisely 0 travel time, which isnt so realistic...hehe :D
My irrlicht-based projects have gone underground for now, but if you want, check out my webcomic instead! http://brokenboomerang.net
saigumi
Posts: 921
Joined: Fri Aug 22, 2003 11:31 am
Location: St. Louis, MO USA
Contact:

Post by saigumi »

Techdemo does it. Check the source.

Instead of removing the bullet as the techdemo does, do whatever action you want.
Crud, how do I do this again?
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Post by Spartacus »

ineed i could remove other things however. how do i know its hitting the wall and not the mesh :P
Post Reply