Can a rigidbody2d tell how fast itself is moving?

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

If a rigidbody2d that has no inherent acceleration of its own is pushed by a player kinematicbody2d, is there a way for it to know how fast it is moving?

And can that information be used in an if/else statement?

:bust_in_silhouette: Reply From: miskotam

linear_velocity.length() is what you will need.

Thanks, I’ll look into how that works.

MIna | 2020-10-08 01:49