Phong13 / BulletSharpUnity3d

A fork of the BulletSharp project to make the Bullet Physics Engine usable from C# code in Unity3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AllConvexResultCallback

nagedev opened this issue · comments

commented

As I understand, ConvexResultCallback is inherited by only one class (ClosestConvexResultCallback), and because of that ConvexSweepTest returns only closest result, which means that there's no way to get All collisions

Is there any way to do some shape cast that returns all collisions?

Have you tried using a ghost object? I think you can:

Create a ghost object
Add your casting shape
Move it and there should be a collision pair cache that has all the collisions.

commented

That works!
I thought it would require calling StepSimulation, but it works perfectly without it
Thanks