What's wrong with physics

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

So, here is my question. I was playing with physics, namely: was trying to setup them for top-down view (just removed gravity). And noticed something strange. After applying an impulse to a body, the linear velocity, right after being max, started decreasing until reaching some (idk why) point.

And this loss was insane. I applied 100 impulse to 10-weight points body and the velocity went from 98 to 1.9.

Maybe I’m wrong, but I was expecting vacuum-like behaviour: after applying an impulse get static velocity, but no success…

:bust_in_silhouette: Reply From: Lopy

Godot applies a default “air resistance”. For a space like result, you can change thoses values inside your project’s settings to 0:

physics/3d/default_linear_damp
physics/3d/default_angular_damp

physics/2d/default_linear_damp
physics/2d/default_angular_damp

You can also set those directly on your RigidBodies, under Linear/Damp and Angular/Damp. This lets you have different ones on each object, and vary them over time.

Areas also have those damp properties, if you want the value to change on a per-location basis. However you need to reset the manual damp values of your bodies to have them be affected.

Uh, thanks a lot, will try!

llem00n | 2022-11-05 07:16