ContactProcessingThreshold And ContactBreakingThreshold

Post Reply
Posts: 1
Joined: Thu Sep 06, 2018 5:07 pm

ContactProcessingThreshold And ContactBreakingThreshold

Post by mosaro » Thu Nov 29, 2018 8:16 pm

I am trying to process distances to all colliders (even when the distance > 0 so they are not in collision) through the AddSingleResult(ManifoldPoint cp, CollisionObjectWrapper colObj0Wrap, int partId0, int index0, CollisionObjectWrapper colObj1Wrap, int partId1, int index1) function.

My understanding is that this is achieved by setting the ContactProcessingThreshold to the value we want to start processing distances. However, changing this value seems to have no effect in the threshold by which contacts are being processed.
Contacts seem to be getting processed for distances smaller than 0.002.

This is with ContactProcessingThreshold in CollisionObject and PersistentManifold to 10000.
ContactBreakingThreshold set to ContactProcessingThreshold * 2.001f in PersistentManifold
and DispatcherFlags = DispatcherFlags & ~DispatcherFlags.UseRelativeContactBreakingThreshold in CollisionDispatcher.

Is there anything else we need to change to be able to adjust the threshold for processing contact points?

Post Reply