0 votes

So I have multiple kinematic bodies which collide with each other. more than 15. So I created a new node that extends Kinematic body 3d (e.g. newKineBody) and then hard coded all the physics code. After that I changed those 15 nodes to newKineBody.

Now, newKineBody has simple code that checks collision, if happened then changed velocity and apply some velocity response to collider. But now since both kineNewBody has same response which Node will detect collision first? Wil it affect collision performance?

Current problem: I already have it working but some times two bodies are being glued together and skipping collision response. Most of the time it works perfectly but some times it just behaves like they are magnet.

https://youtu.be/A8ZasHWIu0k video link
Carefull watch the green disc. watch in 60 fps for better details.
https://pastebin.com/1GvEUgkE here is the code
https://pastebin.com/90EDiUrb code for the green body

Thank you!

Godot version 3.2.4 RC5
in Engine by (120 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.