playMaker

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

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Re: Set Hinge Joint Properties (3d)
« Reply #15 on: April 09, 2016, 12:28:39 PM »
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: 15500
  • Official Playmaker Support
Re: Set Hinge Joint Properties (3d)
« Reply #16 on: April 15, 2016, 02:32:42 AM »
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