barrard Posted June 9, 2021 Share Posted June 9, 2021 Hey everyone, thanks for taking time to read, and for any help. I'm using PIXI to show a replay of a simulation that has already run, storing all the times/locations of my objects (squares). Basically, I have squares that i render as sprites, and i has known positions and times for the squares. I then use that data to visually show the simulation. Example. at Time = 0 I have a square at x= 0 and y = 0, My next data point is at Time = 1, and x = 10 y = 10. Currently I can just set the new position of the square, but it will jump to the new location, and I would like to smoothly animate the square to its new location. One question i have: Would I need to implement a ticker function to do this, or would there be another way? Also, the time spent moving the sprite can vary, as I can adjust the playback speed of the time. 1x speed would be one data point per second, and 20x speed would be 20 data points per second. Thanks for any help/input you may have! Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.