playMaker

Author Topic: Float Range Mapper  (Read 2509 times)

doppelmonster

  • Full Member
  • ***
  • Posts: 157
    • Grinder Games
Float Range Mapper
« on: September 22, 2015, 03:52:22 AM »
Remaps a float value to a new range. Convert for example degree (Old Min = 0 , Max = 360) to percent (New Min = 0, Max = 100).

You can get it on the Ecosystem or here:
https://doppelmonster.snipt.net/-a5e7d59d/


« Last Edit: September 22, 2015, 06:35:04 AM by doppelmonster »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Float Range Mapper
« Reply #1 on: September 22, 2015, 04:44:28 AM »
Hi,

thanks for this, but I think we already have something similar :)FloatRemap

also, I think in your example you mean [0:360] to [0:100] or [0:1] right?


Bye,

 Jean

doppelmonster

  • Full Member
  • ***
  • Posts: 157
    • Grinder Games
Re: Float Range Mapper
« Reply #2 on: September 22, 2015, 06:37:36 AM »
Ups, you are right ::). Couldnt find it back then, so i have written my own...
I will remove it from the ecosystem. no need for a double there.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Float Range Mapper
« Reply #3 on: September 22, 2015, 12:29:39 PM »
Hi,

 ok. What I'll do is add them keyword "range" and "mapper" to the action, it will increase visibility and will return this action if you search for such words.

 Bye,

 Jean