Collision detection

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
bobyBola
Posts: 28
Joined: Wed Jan 07, 2009 5:02 am
Location: Indonesia

Collision detection

Post by bobyBola »

Hi, I need help with a collision detection.
Sorry if this sounds little noob.

getCollisionPoint will check line with a selector (mesh).

The following code will check collision between two bounding boxes...
sn1->getTransformedBoundingBox().intersectsWithBox(sn2-getTransformedBoundingBox())

But how do I just check collision between 2 mesh?

I can use createCollisionResponseAnimator, it'd check a collision between 2 mesh and do respond.. But I only need to check the collision between 2 mesh, nothing else.

Thanks
hai adik2 semua mari kita belajar sambil bermain bersama saya si BOBBY BOLA di edugames bermacam pelajaran bisa didapat ad berhitung menggambar mewarnai tidak ketinggalan dapat belajar nyanyi juga belajar huruf angka & logika bersama BOBBY BOLA semua bisa
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

The problem here is that checking between 2 meshes is EXTREMELY slow, every polygon must be checked. If you look in the collision example, it does it between a mesh and an ellipsoid, which should work and is much faster.
omar shaaban
Posts: 616
Joined: Wed Nov 01, 2006 6:26 pm
Location: Cairo,Egypt
Contact:

Post by omar shaaban »

yeah just wait for irrlicht1.6 they will support simple collision checking (returning values upon collision)
Post Reply