forces between rigidbodies2d

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

I have rigidbody with others resting on top, and I want it to break when the forces acting on it reach a treshold, but I can’t find a method for getting the forces.
What would be the best way to get that information?

:bust_in_silhouette: Reply From: magicalogic

RigidBody2D has an “applied_force” property which you should hopefully find useful.

I have tested it and applied_force doesn’t include gravity and forces from collisions. As far as I know it’s for applying Constant force to rigidbodies from code I need to know the total force including thinks like collisions to correctly determin if the rigidbody should break.

Mat | 2020-12-06 22:15