Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on October 04, 2013, 02:24:58 AM

Title: Float Remap ( cross multiplication )
Post by: jeanfabre on October 04, 2013, 02:24:58 AM
Hi,

 Following an request, please find a custom action to remap a float between values.

http://forum.unity3d.com/threads/119437-Re-map-a-number-from-one-range-to-another

Typically, you have 2 defined between 1 and 3, remaping 2 between 0 and 10 will give 5.

It's called actually Cross multiplication:

http://en.wikipedia.org/wiki/Cross-multiplication

you can get it directly on the Ecosystem (http://j.mp/1Esn1mF) or below:

FloatRemap (https://github.com/jeanfabre/PlayMakerCustomActions_U3/blob/master/Assets/PlayMaker%20Custom%20Actions/Math/FloatRemap.cs)

 Bye,

 Jean