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


Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make floor break when u go to a certain area
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#82
RE: how to make floor break when u go to a certain area

(07-08-2014, 09:34 AM)DnALANGE Wrote: AddPlayerBodyForce(-5000.0f, 0.0f, 0.0f, true);
I guess the bodyforce, could depend on where the closet is pointing at..?
Try like this?
Quote: AddPlayerBodyForce(-5000.0f, 0.0f, 0.0f, true);
AddPlayerBodyForce(0, -5000.0f, 0.0f, true);
AddPlayerBodyForce(0, 0.0f, -5000.0f, true);

Well, at least we don't want the player to fly upwards no matter what direction, eh? Referring to the Y force. The last boolean says to use local co-ords, so only setting that to false would make this difference. It could be that the force to push you back lies on the local Z axis, but I would find that sorta strange.

(This post was last modified: 07-08-2014, 03:54 PM by Mudbill.)
07-08-2014, 03:53 PM
Find


Messages In This Thread
RE: how to make floor break when u go to a certain area - by Mudbill - 07-08-2014, 03:53 PM



Users browsing this thread: 2 Guest(s)