The position of a box is updated by sending the position data in a list currentTargetPos. But when I run the following code in some loop, VPython displays a trail of all the positions box was given. There is this situation with the display. I want to display the most recent placement of box. How do I update the scene ?
from visual import *
bluebox=box(pos=vector(currentTargetPos[0], currentTargetPos[1], currentTargetPos[2]), size= (1,1,1),color=color.cyan)
while 1:
rate(100)
break
Edit: I do not have velocity data for the box. So I can not update the position using velocity. So this is basically not an animation in strict sense since while loop always breaks. But, I want to make it look like animation.