Hi,
I am using an analogue potentiometer as input via serial port into B3d.
The pot readings are as follows: 600 = fully left, 500 = middle, 400 fully right, and of course anywhere in-between.
I want to use the input to steer with momentum, so if I am going right (400) and I swing the pot to the left (600) I want the effect to seem to occur gradually as though the momentum is keeping me going right for a short while.
I have implemented an array and I am using an index to read from the array based on the potentiometer reading, but if I move right and then left ( but keep the reading right of centre i.e. greater than 500) the movement does not act accordingly.
Any thought on how to approach this please??
IPete2.
I am using an analogue potentiometer as input via serial port into B3d.
The pot readings are as follows: 600 = fully left, 500 = middle, 400 fully right, and of course anywhere in-between.
I want to use the input to steer with momentum, so if I am going right (400) and I swing the pot to the left (600) I want the effect to seem to occur gradually as though the momentum is keeping me going right for a short while.
I have implemented an array and I am using an index to read from the array based on the potentiometer reading, but if I move right and then left ( but keep the reading right of centre i.e. greater than 500) the movement does not act accordingly.
Any thought on how to approach this please??
IPete2.