3D Godot Movement And Collisions Problem. HELP!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By buxnast

Heres my problem in short:

I need body that reacts realistic to gravity and physics. Object must be dragable with a mouse. When i use kinematic body with move and slide, it gets stuck in air and is not falling realistic if it falls (no rotation, no weight center). If I use rigidbody, with apply impulse or add force, that body is oscilating around the cursor point like crazy. If i use transform or translate, object is strictly pinned to the mouse point but can go through walls and other static or kinematic bodies. All collision shapes are applied correcly, can sleep is disabled, continuous cd is enabled.

My fellow godoters please let me know what to do. My objective is to make physics and mechanics like in game “amnesia the dark descent”

:bust_in_silhouette: Reply From: Andrea

you need to use a rigid object: it has an handy property called “mode”, which makes it change behaviour: change it to kinematic while dragged, when released change it back to rigid.

A different solution using rigid mode all of the time (not tested though): if the problem is only the oscillation while mouse is moved, you can attenuate it increasing/decreasing linear and angular damp