rapier icon indicating copy to clipboard operation
rapier copied to clipboard

Shape Cast Does Ignores Collisions With Heightfield

Open zicklag opened this issue 2 years ago • 2 comments

I have a simple scene that I've built in bevy_rapier3d, and after doing some testing it appears that a cast_shape will never report intersections with a heightfield. cast_ray works, and cast_shape will still collide with a cuboid just fine.

Is this expected or is it a bug?

zicklag avatar Jun 22 '22 00:06 zicklag

This is a known bug. Shape-casting isn’t implemented for heightfields yet. A workaround is use a TriMesh instead if shape-casting is required.

sebcrozet avatar Jun 22 '22 07:06 sebcrozet

I'll try a TriMesh then, thanks!

I'll leave this issue open for anybody else who might stumble on this.

zicklag avatar Jun 22 '22 13:06 zicklag

Linear shape-casting on heightfields works now in Rapier 0.16.

sebcrozet avatar Jan 01 '23 17:01 sebcrozet