Optimized Jump/Fall Physics
by StandardFace · in iTorque 2D · 04/20/2010 (10:29 am) · 1 replies
For a platformer, etc... are there any recommended jumping techniques that aren't FPS killers on the iPhone?
I'm aware of the platformer tutorial on TDN but it uses onUpdate() which I have read is a resource hog. I have also read techniques using a linearVelocity and setConstantForce, but searching the forums for setConstantForce in TGB and iTGB sections returns little useful information. Is setConstantForce a FPS killer as well? This would be used for a platformer character jumping or falling down pits, etc.
Although you can offer example code, I'm really just asking for other methods than what I have found on the forums, if anyone wouldn't mind sharing how they would/have solved jumping dilemmas.
-SFS
I'm aware of the platformer tutorial on TDN but it uses onUpdate() which I have read is a resource hog. I have also read techniques using a linearVelocity and setConstantForce, but searching the forums for setConstantForce in TGB and iTGB sections returns little useful information. Is setConstantForce a FPS killer as well? This would be used for a platformer character jumping or falling down pits, etc.
Although you can offer example code, I'm really just asking for other methods than what I have found on the forums, if anyone wouldn't mind sharing how they would/have solved jumping dilemmas.
-SFS
About the author
Torque Owner StandardFace