Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddPlayerBodyForce
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#1
AddPlayerBodyForce

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

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 10-18-2011, 07:21 PM by Elven.)
10-18-2011, 06:13 PM
Find
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#2
RE: AddPlayerBodyForce

(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.
10-18-2011, 06:45 PM
Find
Elven Offline
Posting Freak

Posts: 862
Threads: 37
Joined: Aug 2011
Reputation: 26
#3
RE: AddPlayerBodyForce

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!

The Interrogation
Chapter 1

My tutorials
(This post was last modified: 10-18-2011, 07:20 PM by Elven.)
10-18-2011, 07:05 PM
Find




Users browsing this thread: 2 Guest(s)