point based gravity
Posted: Wed Aug 02, 2006 4:10 am
By what method would you recommed creating gravity centred on a single point in the middle of a screen (i.e. rather than everything just being pulled down)?
The only way I can think of doing it would be to have a global array of velocity vectors (two for each object to be affected by the gravity) which would have to be updated each frame manually. Surely there's a less computationally intensive way of doing this.
The only way I can think of doing it would be to have a global array of velocity vectors (two for each object to be affected by the gravity) which would have to be updated each frame manually. Surely there's a less computationally intensive way of doing this.