Determine collision energy for RigidBody2D

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

When using RigidBody2D and colliding it to static bodies, I’d like to be able to determine the magnitude of the impact (I’m doing a lander style game). Is there a good way to do this? I’ve been looking at the linear_velocity vector (its length), but it behaves really strange as soon as the rigid body is rotated, even for very small angles.