Frictional Games Forum (read-only)
AddPlayerBodyForce - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: AddPlayerBodyForce (/thread-10840.html)



AddPlayerBodyForce - Elven - 10-18-2011

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 :/


RE: AddPlayerBodyForce - Apjjm - 10-18-2011

(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.


RE: AddPlayerBodyForce - Elven - 10-18-2011

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!