playMaker

Author Topic: Set Hinge Joint Properties (3d)  (Read 6499 times)

Aaddiction

  • Junior Playmaker
  • **
  • Posts: 95
    • View Profile
Re: Set Hinge Joint Properties (3d)
« Reply #15 on: April 09, 2016, 09:28:39 AM »
Hi Lane,

I just got this error in Unity 5.1.1f1:
Code: [Select]
Assets/PlayMaker Custom Actions/Physics/SetHingeJointProperties.cs(270,41): error CS0619: `UnityEngine.JointLimits.minBounce' is obsolete: `minBounce and maxBounce are replaced by a single JointLimits.bounciness for both limit ends.'
So I changed these two lines:
Code: [Select]
//_limits.minBounce = minBounce.Value;
_limits.bounciness = minBounce.Value;

//_limits.maxBounce = maxBounce.Value;
_limits.bounciness = maxBounce.Value;

Hope it will work just like before.

Please update it here:
https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Physics/SetHingeJointProperties.cs
 if this is the proper way to fix the problem.

Br,
szomaza

Sorry, but I don't see those lines. Where are they to replace?

Thanks and sorry for the double post.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14388
  • Official Playmaker Support
    • View Profile
Re: Set Hinge Joint Properties (3d)
« Reply #16 on: April 14, 2016, 11:32:42 PM »
Hi,

 It's done, update it from the Ecosystem and the new limits properties will be presented.

https://twitter.com/JeanAtPlayMaker/status/720862269169467392

Bye,

 Jean