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


Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Need help!
TheGreatCthulhu Offline
Member

Posts: 213
Threads: 10
Joined: Oct 2010
Reputation: 32
#4
RE: [split] Need help!

[/quote]
(12-03-2012, 05:53 AM)Daniel47 Wrote: [font=Times New Roman][size=medium]I have used the AddPlayerBodyForce function, and it does not work when the last parameter is set to true
When you say "it doesn't work", what do you mean by it? It works incorrectly, or nothing happens at all, or what?

(12-03-2012, 05:53 AM)Daniel47 Wrote: when the last parameter is set to true, which wherever the player faces, is where he is pushed.
That is not correct, the documentation doesn't say that - it says that the coordinate system will be local to the player, with one of the axes always pointed to the direction the player is facing (it doesn't say which one, so you'll have to do some tests to find out).

This means that you can still push the player in any direction, you just have to specify your vector in a different coordinate system (world vs local).

So try all of these to find out how the axes are oriented.

AddPlayerBodyForce(50000, 0, 0, true);
AddPlayerBodyForce(0, 50000, 0, true);
AddPlayerBodyForce(0, 0, 50000, true);

One will be directed to the side, one up, one to the front (but maybe not in that order, I don't know of the top of my head).
12-03-2012, 11:40 AM
Find


Messages In This Thread
[split] Need help! - by DanielRand47 - 12-03-2012, 05:53 AM
RE: [split] Need help! - by The chaser - 12-03-2012, 09:19 AM
RE: [split] Need help! - by FlawlessHappiness - 12-03-2012, 09:55 AM
RE: [split] Need help! - by TheGreatCthulhu - 12-03-2012, 11:40 AM



Users browsing this thread: 1 Guest(s)