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
Questions I'm too lazy to test
MrBehemoth Offline
Senior Member

Posts: 408
Threads: 19
Joined: Feb 2014
Reputation: 40
#3
RE: Questions I'm too lazy to test

(10-03-2014, 05:40 AM)Romulator Wrote:
(10-03-2014, 05:25 AM)burge4150 Wrote: 3.) Can the player be thrown THROUGH walls or solid objects with AddPlayerBodyForce? Is it a know issue? I was testing my story and I got thrown through a wall and out of the map. I'm not using an absurd number, just a friendly (terrifying) nudge from a hidden entity. I have not been able to re-create the issue despite multiple tries. Was it a fluke?

Quite possible indeed. You could have had a collision error with your hidden entity as well which caused you to experience a violent force of such which is enough to push you through something. It is essentially easier to fall through a plane than a Static Object or model however. If it occurred and you're unable to replicate it, I would assume it as a fluke or slight error with where your character or entity was located.

It's usually to do with the speed the player is moving. If the player has been flung too fast, then the wall has passed before the engine has time to realise there's been a collision. Three ways around this: (1) carefully tweak the force you apply, if you can; (2) apply a second force in the opposite direction to slow the player down just before the hit the wall; (3) use a "layered" wall, by which I mean have 3 or 4 wall objects or planes something like 0.05 units apart. Because they are multiple, the engine will notice a collision with one of them, but they are close enough together so that the player won't get embedded in them. I used this technique in The Trapdoor, when it was pretty much 50/50 whether the player would fly through a particular wall.

10-04-2014, 10:47 AM
Find


Messages In This Thread
Questions I'm too lazy to test - by burge4150 - 10-03-2014, 05:25 AM
RE: Questions I'm too lazy to test - by Romulator - 10-03-2014, 05:40 AM
RE: Questions I'm too lazy to test - by MrBehemoth - 10-04-2014, 10:47 AM



Users browsing this thread: 1 Guest(s)