- Home /
Obtaining current forces being applied to a joint for visualization.
My first question for the community :)
Is there any way of obtaining a value that represents the computed force being applied to a joint. I know how to set the breakForce and breakTorque but havn't been able to find the current force or torque being applied to a joint.
I intend to use this information to render a gradient scale (Green -> Red) status of joints.
Many thanks Dan.
Answer by Statement · Dec 07, 2010 at 06:14 PM
Hi Dan, and welcome!
Looking at the documentation for Joint I can't see any way to obtain this information you want to get hold of. There are only five variables declared on Joint, the rest are inherited. The only information regarding the joint breakage is the event OnJointBreak which give you the force which broke the joint but that probably won't help you much as the joint already broke by that point.
In short: You can't with the existing API.
Thanks for confir$$anonymous$$g. Shame the API doesn't expose these as readonly somewhere.
Your answer
Follow this Question
Related Questions
reading forces applied to a rigidbody 1 Answer
physx joint clutch 0 Answers
Can't change HingeJoint properties by script 1 Answer
How to truly lock an axis in a configurable joint? 2 Answers