Search Unity

Making Joint2D-s break at certain force

Discussion in '2D' started by Enterprise-E, May 31, 2014.

  1. Enterprise-E

    Enterprise-E

    Joined:
    Jul 31, 2013
    Posts:
    8
    Hello

    Is there any way to measure the force acting on a Joint2D? In the scripting reference i see no such thing. It would be fine, if i could just get a value, and set up my own script to manually delete the joint it it exceeds a certain threshold.
     
  2. FICinc

    FICinc

    Joined:
    Mar 6, 2022
    Posts:
    25
    Joint2D.reactionForce
    Also if you want it to delete it after a certain threshold: Joint2D.breakForce
    Also make sure to actually look and think before saying you can't do something (then again, we're only human...).
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    Please be careful not to necro; this post was created nearly 9 years ago and was likely correct at the time.