Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Is it possible to get current force of a Joint?

Discussion in 'Physics' started by SKULLgaming8777, Oct 1, 2023.

  1. SKULLgaming8777

    SKULLgaming8777

    Joined:
    Dec 11, 2021
    Posts:
    16
    The title is a little confusing so I'm gonna elaborate. each joint has a break force right, is it possible to get the current force of that joint? Basically I wanna know if it's possible to get the value that let's the joint determine if it's recieving enough force to break.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,108
    If not misleading. :cool:

    But let's assume you refer to physics. I'd look into currentForce property. The manual doesn't say specifically but I would assume it's what you're looking for. Check if that value goes up when the joint comes under stress.
     
  3. SKULLgaming8777

    SKULLgaming8777

    Joined:
    Dec 11, 2021
    Posts:
    16
    Thank you I'll take a look. Although it's a vector 3 I'll figure something out.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,108
    currentForce.magnitude would then give you the length (or: strength) of the force.