Fix trimesh vs capsule contact depth calculation

#12 Merged at afcb7e8
Repository
odedevs
Branch
default
Author
  1. Piotr Piastucki
Reviewers
Description

There seems to be a bug in gimpact when it comes to calculating contact depth between trimeshes and capsules. Apparently instead of finding the distance between triangle plane and closest point the coordinates of the closest point are projected onto the plane normal. The PR fixes the issue by calling DISTANCE_PLANE_POINT instead of VEC_DOT.

Comments (0)