About move and collide and the safe margin. #839
Unanswered
yosoyfreeman
asked this question in
Questions
Replies: 1 comment 3 replies
-
Apologies for taking so long to get to this. It's been a busy week. I'm not entirely sure I understand the issue you're having, nor what you're suggesting should be changed. Are you saying you want |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I have a question. Move and collide has the safe margin, which will depenetrate or move the body away from anything in that margin that is considered to be touching. I been using it to make checks with zero velocity as we talked in the other topic about collision suggestions, and increasing this value to allow near geometry to be counted as a collision.
However, what actually happens is that the body is moved away by the safe margin and then proceeds to gather the information. So increasing the safe margin makes gathering nearby collisions harder, not easier.
I understand this when recovery as collision is set to false, as you probably don't want those normals in that case. But the safe margin is technically part of the recovery process and in fact the parameters reads as such on the documentation:
So if you try to use it for such purpose as is my case, the safe margin actually prevents the body from gathering such collisions in first place.
This can be easily confirmed if you force the solver to under resolve with a 10% resolution only, you will se that now this contacts are reported.
After various months of work i almost finished my character and movement system from scratch, but i'm having troubles getting reliable information about all the collision normals. Unless we force the kinematic solver to underperform, which increases the risk of getting stuck, no information will be gatherer.
I think it makes sense to report this normals used to move the body to the initial position used by the safe margin as collisions if recovery as collisions is set to true, otherwise we will remain having issues by lost collisions (As it currently happens in godot move and slide too) due to numetical issues and the safe margin preventing the body to actually reaching the surfaces its meant to report.
I would love to know your opinion.
Freeman.
Beta Was this translation helpful? Give feedback.
All reactions