Game Development Community

Beta 3 bug: setConstantForce()

by Patrick Shaw · in Torque Game Builder · 05/11/2006 (4:43 am) · 0 replies

Hello,
I am porting my project over to beta 3. In beta 2, I used:

$player1.setConstantForce(0, $gravity);

to push the player down. In beta 3, however, this accelerates the player upwards. However, if I change the x component of the code slightly to:

$player1.setConstantForce(1, $gravity);

The player falls downwards normally.