reactphysics3d icon indicating copy to clipboard operation
reactphysics3d copied to clipboard

Floor made up of tiles doens't have smooth movement over it

Open Omroth opened this issue 3 years ago • 3 comments

Hiya,

My floor is made up of cuboid tiles, but they all have the same height. When I move an object over it, be it a sphere or another cuboid, there is often a hitch or a jump as it navigates between tiles, even though they line up.

What's my best approach to this? Would expanding them a bit so they definitely overlap be a better idea?

Omroth avatar Aug 04 '22 07:08 Omroth

I would say that this is expected from the collision detection when moving between different collision shapes. You should try to use a single collision shape that contains all your floor in your case. Either a BoxShape, or maybe a ConvexMeshShape or a ConcaveMeshShape instead.

DanielChappuis avatar Aug 04 '22 12:08 DanielChappuis

I guess a ConcaveMeshShape would allow me to have many holes in them?

ghost avatar Aug 04 '22 12:08 ghost

Yes, if you need a floor with holes, you need to use a ConcaveMeshShape.

DanielChappuis avatar Aug 04 '22 13:08 DanielChappuis

I am closing this issue. Do not hesitate to reopen it if needed.

DanielChappuis avatar Aug 16 '22 12:08 DanielChappuis