Best Way to Implement Gravity?
by Brandon Haston · in Torque X 2D · 12/23/2008 (6:28 pm) · 1 replies
Right now I feel dirty because I'm simply adding a physics component with a permanent y velocity of +20.0f to every object I want to have "gravity" applied to.
With this implementation the objects just move down until they collide with something.
I was wondering though, is their a cleaner, more efficient way to implement a gravity system for a simple platformer? (I just want to be able to jump instead of flying upwards) I don't have the Platformer Starter Kit to look at for reference.
Thanks,
Brandon Haston
With this implementation the objects just move down until they collide with something.
I was wondering though, is their a cleaner, more efficient way to implement a gravity system for a simple platformer? (I just want to be able to jump instead of flying upwards) I don't have the Platformer Starter Kit to look at for reference.
Thanks,
Brandon Haston
About the author
Associate John Kanalakis
EnvyGames
John K.