playMaker

Author Topic: Mathf.DeltaAngle  (Read 2910 times)

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 150
Mathf.DeltaAngle
« on: April 16, 2018, 05:36:29 PM »
Action for this:
https://docs.unity3d.com/ScriptReference/Mathf.DeltaAngle.html

Calculates the shortest difference between two given angles given in degrees.


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Mathf.DeltaAngle
« Reply #1 on: April 17, 2018, 03:05:23 AM »
Hi,

Thanks for your contribution, but always check on the Ecosystem first, this action already exists :) !

https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/Assets/PlayMaker%20Custom%20Actions/Trigonometry/GetDeltaAngle.cs

to check, simply type the api you want, for example in this case Mathf.DeltaAngle



Bye,

 Jean

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 150
Re: Mathf.DeltaAngle
« Reply #2 on: April 17, 2018, 07:11:45 AM »
I did ofcourse check ecosystem, it's the first thing I do. But this action you mention doesn't work/do what mine does, mine works exactly like the Unity one. The one from the ecosystem uses objects and x-direction and didn't do what I needed.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Mathf.DeltaAngle
« Reply #3 on: April 17, 2018, 09:29:45 AM »
Hi,

 I see, yeah, cool!

 Bye,

 Jean