Non-cumulative behaviour of joystick?
Opened this issue · 0 comments
piobmx commented
The behaviour of the joystick when providing a vec2 values like {x: 0, y:0}
cumulative, the resulting value after every edit is the sum of all the previous operations. So I would like to know if it is possible to reset the x, y values to 0 after each edit. The attempt I've made is to reset the value in onEditEnd:
onEditEnd: (endTruckValues, s, t) => {
t.value = { ...t.value, x: 0, y: 0 };
}
But that does not work as I expected.