Detect when an object is sliding

Post Reply
Pauldev
Posts: 1
Joined: Tue Feb 21, 2023 11:55 am

Detect when an object is sliding

Post by Pauldev »

Hi everyone.

I'm implementing impact sounds in my 3D engine. I'm parsing all contact manifolds to detect current collisions and play hit sounds on impact.
However I'd like to also implement sounds of objects sliding / dragging on top of each other (for instance, a metal box sliding on top of smooth concrete ground).

Does anyone have an idea on how can I determine (from contact manifolds) when an object is just sliding on top another object, and not rolling or just hitting it?

I thought about checking whether the motion vector is perpendicular to the contact manifold normal, but perhaps there's another way to check that (maybe the Bullet Physics engine already determines that in its internal calculations).
Post Reply