-
Senior Member
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...
-
Senior Member
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
-
Trials Developer
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.
-
Member
^^already explained, but I just came here to say that looks like a fun skill game.
-
Senior Member
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
-
Senior Member
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.
-
Senior Member
snapping should do the trick tom, you don't need precision
-
Junior Member
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.
-
Senior Member
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