0 votes

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"

asked Jun 1 in Engine by buxnast (46 points)

1 Answer

+1 vote
Best answer

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

answered Jun 1 by Andrea (519 points)
selected Jun 2 by buxnast
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.