Game Development Community

Speed and limits

by Eros · in Torque Game Engine Advanced · 10/14/2009 (1:49 pm) · 2 replies

I've looked for info about all this concern for a while and i can't find anything useful so, here are my questions.

I've seen we can change our player speed changing our $movementSpeed an this parameters on the player datablock:
runForce = 48 * 90;
runEnergyDrain = 0;
minRunEnergy = 0;
maxForwardSpeed = 14;
maxBackwardSpeed = 13;
maxSideSpeed = 13;

But, i have to doubds on this.
1.- What do the runForce values really do? why are them 2 separated values?
2.- It seems to be a speed limitation, so if i try to use huge values, it ignores absolutely the increment of speed, furthermore, if you rise up too much runForce, the player will die with the first step (xD).

I hope someone could solve my questions or show me where i can find some documentation.

Sorry for my bad english and thank you for the help.

#1
10/15/2009 (1:19 pm)
1. Force = acceleration * mass (Newton's 2nd law)
runForce is used to create some velocity friction.
If you play a bit with the values,you will see player gets slip like over an icy ground.

2. Speed limitations are usefull to prevent bad things to happen if you mess up the velocity - for example to prevent jumping a wall or the whole level.
#2
10/15/2009 (1:24 pm)
thank you for your responses ^_^
PD: I would need yo make some changes then, to let bad things happen xD