Frictional Games Forum (read-only)

Full Version: AddPlayerBodyForce
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
AddPlayerBodyForce(-5000, 0, 0, true);

Doesn't work at all. Doesn't it work if the last thing is true? It should then move depending where Player looks, yet it doesn't move at all. If i take true into false, it moves tho :/

But I want it to depend to where player looks :/
(10-18-2011, 06:13 PM)Elven Wrote: [ -> ]AddPlayerBodyForce(-5000, 0, 0, true);

Doesn't work at all. Doesn't it work if the last thing is true? It should then move depending where Player looks, yet it doesn't move at all. If i take true into false, it moves tho :/

But I want it to depend to where player looks :/
Movement in the direction the player is looking is all done on the Z-axis if you are using local coords.
But I want it to move Left or Right, instead straight O.o, that doesn't work?

Oh, I used AddPlayerBodyForce(0.0f, 1500.0f, 0.0f, true); and it worked Big Grin!

Thank you good sir Smile!