Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joint Torques Availability #38

Open
kodie-artner opened this issue Oct 5, 2021 · 3 comments
Open

Joint Torques Availability #38

kodie-artner opened this issue Oct 5, 2021 · 3 comments
Assignees

Comments

@kodie-artner
Copy link

Is it possible to derive joint torques from the ArticulationBody? ArticulationBody.jointForce looks to be a similar but it only returns zero for revolute joints in all the tests I have conducted. I am using Unity 2020.3.19.

@kodie-artner kodie-artner changed the title Joint Torques Joint Torques Availability Oct 5, 2021
@kodie-artner
Copy link
Author

@RomanStadlhuber
Copy link

RomanStadlhuber commented Oct 5, 2021

The torque exerted by a joint is the magnitude of the cross product of the attached links (i.e. all links that come after a joint) inertia tensor times its angular acceleration.
You can obtain the inertia tensor of an articulation body object.

In case the axes of rotation and center of mass are offset, apply the parallel axis theorem

"Unity - Scripting API: ArticulationBody.inertiaTensor" https://docs.unity3d.com/2020.1/Documentation/ScriptReference/ArticulationBody-inertiaTensor.html

edit: replaced velocity with acceleration

@vidurvij-Unity
Copy link

@kodie-artner This API has not been implemented yet, It will return 0 value for now. We are in process of implementing, the code necessary to return joint force values for ArticulationBodies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants