0 votes

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?

in Engine by (12 points)

1 Answer

0 votes

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

by (1,049 points)

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.

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.