- Home /
How to get all forces applied to a rigidbody
Hello !
I was wondering if there is a way to get all forces applied to a rigidbody.
exemple:
rigidbody.AddForce(Vector3.forward * 10) Vector3 forceApplied = rigidbody.GetForce(0) //GetForce(index i)
If I have to code the 'getforce' function by myself, then what would it look like ?
Thanks for helping !
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613063236im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Hovercraft Physics Problems 1 Answer
Returning a rigidbody back to its original x and z rotations through physics forces. 2 Answers
How to make a object jump constantly at y and move to the next position to z (perfectly) 0 Answers
Kinematics: Trying to get an object to land at a known point 1 Answer