Collision manifold and animated terrain (deformable object)
-
- Posts: 133
- Joined: Wed Jul 27, 2005 1:05 pm
- Location: Berkeley, CA
Collision manifold and animated terrain (deformable object)
hey, I've been experimenting with animating terrain (Just a simple sin curve currently). The collision manifold code falls over badly in this scenario. The manifold kicks points out only when the transformation changes and not when the collision shape is changing shape. Anyways, the obvious solution is to just clear the manifold when the collision shape changes, but that's not very efficient or stable when using the sampling based GJK manifold collector. Has anyone tackled this before?
-
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Re: Collision manifold and animated terrain (deformable obje
If possible, try to apply the deformation function to the local contact points. This should give better results than throwing all points away. I tried this when scaling rigid bodies, and got good results.
jmc wrote:hey, I've been experimenting with animating terrain (Just a simple sin curve currently). The collision manifold code falls over badly in this scenario. The manifold kicks points out only when the transformation changes and not when the collision shape is changing shape. Anyways, the obvious solution is to just clear the manifold when the collision shape changes, but that's not very efficient or stable when using the sampling based GJK manifold collector. Has anyone tackled this before?