Any way to detect colision when it happens?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Any way to detect colision when it happens?

Post by thesmileman »

Is there any function call or any event that can be detected when a node collides with another node? So I could right the code below:

if(irrCollisionManager->onEvent(collision)) {
//do something
}

This would be tremendously helpful to many people. After all we usually want to do something when an object collides with something right? Guy hits ground, bullet hits ship, anything just about.

Thanks niko for a great engine!
Guest
Posts: 35
Joined: Mon Feb 02, 2004 7:17 pm
Location: Russia, Saint-Petersburg

Post by Guest »

there was already a post somewhere on how to find collision point. The answer was to create your OWN collision response animator (you can inherit it from the existing one). So I think you have the same question.

Search forum before posting...
there is another guest...
Guest

Mercior

Post by Guest »

While there is no built in system for calling back on collision, it is very possible to build a framework around irrlicht to manage collision callbacks. ICE may provide this functionality? I'm not 100% sure on that :)
Post Reply