Point of Contact

InsertWittyName
Posts: 6
Joined: Sat Nov 20, 2010 5:14 pm

Point of Contact

Post by InsertWittyName »

Hi guys,

I'm playing around with the BasicDemo to get a feel for how Bullet works, and I want to be able to find the point where a btRigidBody is in contact with the floor (which is another btRigidBody).

Does anyone know how I can go about doing this?

Thanks
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: Point of Contact

Post by Erwin Coumans »

You can iterate over the contact points, each point has the position and normal in world coordinates.

See Bullet/Demos/CollisionInterfaceDemo or the wiki.
Thanks,
Erwin
InsertWittyName
Posts: 6
Joined: Sat Nov 20, 2010 5:14 pm

Re: Point of Contact

Post by InsertWittyName »

Excellent, thanks for the tip.