+1 vote

I am making a platformer and i created a large class tree based on kinematic body for my enemies, player, and general objects, thinking if i wanted advanced physics i could simply use RigidBody2d and they would interact properly. However, the rigid body reacts to the kinematic body , but the kinematic body does not react to the rigid body, meaning the kinematic body will pass through the rigid body and the rigid body will glitch out. This makes sense, but this means in order to interact with rigid body the way i want, i must either write physics interactions for the kinematic body, or rewrite my tree based on rigidbody2D on kinematic mode and write code for kinematic body-specific functions, like isonfloor(). Is there some sort of library out there that implements all of the helpful kinematic body functions that rigid body doesn't have, or some sort of code that i can implement for physics interactions with kinematic body? Or is there a better way? It seems pretty stupid that i would need to do either of these, so i expect there is a better way, or Godot needs some more work in this area.

in Engine by (243 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 Frequently asked questions and 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.