I’m trying to make an 3D object move automatically every time I press the arrow buttons on my keyboard.
Obviously, the panda should move left when I press the left arrow button, and move right when I press the one with right arrow. I decided to use the intervals: when pressing the left arrow button, I will add one CLerpNodePathInterval object to the interval list; when it is finished, clear the list, and waiting for another key to be pressed.
But strangely, after calling clear_intervals(), every operation related to the interval list will cause segmentation fault.
Why? And what should I do? Do you have any better way to make the object move?
Sorry for my poor English… Hope it didn’t make you confused.