0 votes

Mesh library I used

This is the meshlibrary I made for the gridmap.
When I set the cells in code, or just by adding the with click, the collision does not work, and the player passes through the gridmap.
(Iknow it works with static body, but that is slow to instance and I am using gridmaps to generate huge areas, which, with static body takes 30 secs, while with kinematic is instant)

Godot version 3.2.3
in Engine by (25 points)

1 Answer

0 votes
Best answer

Gridmaps only work with StaticBody, if you look it as instant with KinematicBody is because it's not creating them.
Huge scenes with Gridmaps are not a good idea, Godot doesn't cull the meshes and having all those physics objects at once affect performance.
Also if using Bullet physics there is a bug that pushes objects away from the edges, so having small objects together as floor is not a good idea.

by (996 points)
selected by
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.