Dynamic btHeightfieldTerrainShape causing jittered collision
Posted: Tue Oct 13, 2015 9:05 am
Hey all,
I'm using a btHeightfieldTerrainShape, I'm animating it each frame with a simple sin() and having it affect a btConvexHullShape -> btRigidBody. It seems to be causing a lot of jittering if the rigidbody is resting on it at larger values. I'm using CCD but that doesn't seem to be helping much, any advice?
It looks like the wave is moving up through the rigidbody then the rigidbody is moving a lot to correct the penetration rather than smoothly moving with it?
Looks like this - http://gfycat.com/WindyZigzagBallpython
On bits where the terrain doesn't move its nice and solid - http://gfycat.com/ObedientKindCollie
I'm updating the data that is passed into the 3rd argument of btHeightfieldTerrainShape(), I'm not recreating the btHeightfieldTerrainShape each time if that makes any difference?
Cheers
Dave
I'm using a btHeightfieldTerrainShape, I'm animating it each frame with a simple sin() and having it affect a btConvexHullShape -> btRigidBody. It seems to be causing a lot of jittering if the rigidbody is resting on it at larger values. I'm using CCD but that doesn't seem to be helping much, any advice?
It looks like the wave is moving up through the rigidbody then the rigidbody is moving a lot to correct the penetration rather than smoothly moving with it?
Looks like this - http://gfycat.com/WindyZigzagBallpython
On bits where the terrain doesn't move its nice and solid - http://gfycat.com/ObedientKindCollie
I'm updating the data that is passed into the 3rd argument of btHeightfieldTerrainShape(), I'm not recreating the btHeightfieldTerrainShape each time if that makes any difference?
Cheers
Dave