AndresTraks / BulletSharp

.NET wrapper for the Bullet physics library
http://andrestraks.github.io/BulletSharp
MIT License
273 stars 59 forks source link

Method CheckCollideWith #36

Closed vutranclan closed 8 years ago

vutranclan commented 8 years ago

I want to check if two rigidbodys colide with each other,

RigidBody br; RigidBody br2; .... ... br.CheckCollideWith(br2 as CollisionObject); // always true!

Also Softbody.CheckCollideWith doesnt seem to work right.

AndresTraks commented 8 years ago

CheckCollideWith returns whether Bullet should check for collisions between two bodies, not whether collisions have occured.

This page shows how you can check for collisions: https://github.com/AndresTraks/BulletSharp/wiki/Collision-Callbacks-and-Triggers