Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: DanielThomas on April 16, 2018, 05:36:29 PM

Title: Mathf.DeltaAngle
Post by: DanielThomas 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.

Title: Re: Mathf.DeltaAngle
Post by: jeanfabre 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

(https://i.imgur.com/WE9Pemw.png)

Bye,

 Jean
Title: Re: Mathf.DeltaAngle
Post by: DanielThomas 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.
Title: Re: Mathf.DeltaAngle
Post by: jeanfabre on April 17, 2018, 09:29:45 AM
Hi,

 I see, yeah, cool!

 Bye,

 Jean