1. #1

    Convertion

    Hey riders !

    I need your help for a math thing !

    I have a distance operator connected from my rider to the last checkpoint. The result is a number, 242, decreasing to 0 during the ride. I would like this result to be from 100 to 0, so i have ton convert this result with an operation, but can't find how cause im a bit lame at advanced maths (this is advanced for me as soon as i use operators ^^ )
    Im pretty sure you guy will have a really nice aswer for me

    Thanks !
    Share this post

  2. #2
    He, I suppose you set the type slider to driving line with source1 being the last cp and source 2 as the rider?

    Two-input operator A : Divide, operand1= distance operator, operand2= the distance you want to convert to 100/0, so in this case 242.
    (put in the value, DON'T link it to the distance op)

    Two-input operator B: multiply, operand1= A,operand 2=100, now the value will go from 0 to 100, but will go negative if you get behind the first cp and go above 100 if you go further than the last cp)

    To correct this:

    Two-input operator C: min, operand1=B, operand 2=100
    Two-input operator D: max,operand1=C, operand 2=0
    Share this post

  3. #3
    Hey Rishaan, i didn't tried yet cause i finally made my thing in a diferent way, better i think. But i have tons of ideas to use with the distance operator what you answered to me is really cool ! I didn't get it exactly with the min and max but see that i'll have to understand that too ^^. Thanks man !
    Share this post