1. #1
    Core2TOM's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Germany
    Posts
    506

    Problem with Distance Operator

    this is what i tried to explain on the editor stream today:



    the distance operator (driving line) calculates the distance between those 2 objects.
    the starting distance is 4.00 as you can see in the video.
    the object position event moves the right object on every checkpoint +0.20 (local)

    it should be:
    4.000m
    4.200m
    4.400m
    etc.

    but it actually is:
    4.001m (4.00 = 4.001m ?)
    4.200m (+0.199m)
    4.398m (+0.198m)
    4.595m (+0.197m)
    4.792m (+0.197m)
    etc.

    what am i doing wrong?? please tell me, that this is NOT another bug in the editor...
    Share this post

  2. #2
    i would say its s because someting isn't properly snapped makeing it ever so slightly offcenter

    you could always just use a variable datasource and some opperators instead of the real number
    Share this post

  3. #3
    mutetus's Avatar Trials Developer
    Join Date
    Dec 2013
    Location
    The land of fin.
    Posts
    859
    That's just normal rounding error, the distance operator rounds the visible number on the distance tool. You could try multiplying the value in the distance tool by ten, taking floor of that number and dividing it by 10 to get it rounded by tenths.
    Share this post

  4. #4
    ^^already explained, but I just came here to say that looks like a fun skill game.
    Share this post

  5. #5
    Core2TOM's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Germany
    Posts
    506
    thanks, now i see whats the problem... i multiplied and divided the distance with 100, corrected the position and still got rounding errors even with floor or ceil after a time: i have to move the object with with surgical precision to the 100% exact position... OMG!

    @ Rishaan: thanks, i hope it will be fun for everyone i have seen many players on twitch with bunnyhop problems. hope this will help them a bit to learn this important technique
    Share this post

  6. #6
    dasraizer's Avatar Senior Member
    Join Date
    Apr 2014
    Location
    UK, Isle of Wight
    Posts
    1,195
    what about using a two input operator and point op1 to your vds used in the local offset add 4 to it then make this your displayed score.
    Share this post

  7. #7
    snapping should do the trick tom, you don't need precision
    Share this post

  8. #8
    If you set primary score to distance and select a vds as a data source does it still display the number as 0.000m with the m ?
    If so just add a vds, set to 4.00 and use the sve you are already using to increase this value 0.2 and set as primary score. The ope is moving the object accurately it's just the distance operator that's rounding the numbers.
    Share this post

  9. #9
    Core2TOM's Avatar Senior Member
    Join Date
    Mar 2014
    Location
    Germany
    Posts
    506
    snapping should work (havent tested it) thanks. but i think i will use an other method to display how many jumps you made.



    oops i forgot to switch the language of my console to english^^ hope thats not a problem i used checkpoints
    Share this post