DrChat / Gmod-vphysics

Replacement vphysics module for the Source engine (originally meant for Garry's Mod)
Other
92 stars 15 forks source link

Physics Objects sometimes snag on large convex diagonals #30

Closed DrChat closed 10 years ago

DrChat commented 10 years ago

Objects appear to snag on the diagonals of rectangular objects, such as world geometry. Turn on vphysics_overlay_wireframe to find the cross-sections. Also appear to happen on the edges, near the corners.

This REALLY happens with cylinders!

Happens in btGjkPairDetector.cpp in the last part. It appears to be flipping already correct contact normals!

DrChat commented 10 years ago

That just made it rarerrrrr! Disable the fixer if the distance between posA-posB and non-normalized d is greater than some number.

Let's hope the solver doesn't make any inverted contact points.

DrChat commented 10 years ago

Closing as this appears to have been fixed by disabling the workaround. Inverted contact points are rare enough that this can be dismissed.