Bullet Collision Callbacks?

User avatar
masoug
Posts: 5
Joined: Mon Apr 04, 2011 5:17 pm

Bullet Collision Callbacks?

Post by masoug »

Hi,
I'm working on a project that involves Bullet as the physics engine and Irrlicht as the rendering engine. Currently I have both Irrlicht and Bullet playing nice with each other: The objects in the scene bump around with the other objects in the scene :D But I would like to know WHEN each collision occurs. I searched on Google and found this wiki page about collision callbacks but I cannot access it for some reason. Is it down?

Meanwhile, are there other tutorials out there that lay out bullet collision callbacks? I found this thread: http://bulletphysics.org/Bullet/phpBB3/ ... f=9&t=3997 but I wondered if bullet supported callbacks on functions? (i.e. something along the lines of

Code: Select all

 void onCollision(...) {...}
and

Code: Select all

rigidBody->addCollisionCallback(&onCollision, ...)
)

Thanks!
User avatar
nullChar
Posts: 10
Joined: Fri Jan 25, 2013 1:51 pm

Re: Bullet Collision Callbacks?

Post by nullChar »

Coincidence: I tried to access the same page earlier today, and ran into the same problem. I've found a backup here: http://web.archive.org/web/201207010451 ... d_Triggers
User avatar
masoug
Posts: 5
Joined: Mon Apr 04, 2011 5:17 pm

Re: Bullet Collision Callbacks?

Post by masoug »

Thanks nullChar! I'll use that for now. How do we report these things to the admins?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Bullet Collision Callbacks?

Post by Erwin Coumans »

I just spend/lost a few hours fixing the mediawiki issue, it was caused by a broken 'syntax highlight' extension, for the <source lang="cpp"> blocks.

Replaced GeSHi by http://www.mediawiki.org/wiki/Extension:ASHighlight, and installed 'highlight', and it seems to work now.
Thanks,
Erwin