0 votes

Whenever I create multiple static bodies/collision shapes and place them side by side the player "bounces" up as they cross where two floor tiles meet. I've tried adjusting the margins and even making the box extents a little smaller than the actual meshes.

I'm working in 3D with a kinematic body player node. I'm generating buildings with multiple building block scenes that have a mesh instance/static body/collision shape tree setup to resize the collision shape's box to match the size.

It seems to be an issue even if I create the collision shapes as a trimesh static body or a trimesh collision sibling. There's no issues with a test level I created that is made up of a single large mesh but I'm trying to create things procedurally.

My player kinematic body is using moveandslidewithsnap() for slope detection/sliding.

Any way to correct this? I was thinking a raycast to check for the ground and adjust the player position but that won't detect just a mesh instance

in Engine by (12 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.