- Home /
Adding force to grounded/idle RigidbodyFPSController
Hi all,
I'm currently working on a FPS with a RigidbodyFPSController.
I want explosions to push the player away should they get too close, but I'm having trouble with this. While AddExplosionForce works when the player is jumping or moving, when they are standing still, no force will be added and the player will just stay motionless.
I had a look around in the RigidbodyFirstPersonController script, but can't seem to figure out a way to change this. Does anyone have any ideas? Thanks!
That thread does not contain an answer to my question. In fact, much of the information on that page is very outdated.
I'm going to try to re-publish this one, bear with me. Sorry for providing outdated info.
Thank you! I'm sorry if I seemed rude, I was just frustrated at the time.
Answer by HugoHoskins · Jul 06, 2015 at 05:37 AM
Eventually found the line I needed to comment out to make this work...
m_RigidBody.Sleep();
comment that out, and everything works dandy.
Your answer
Follow this Question
Related Questions
Character Controller 1 Answer
How to use AddForce on FPC 0 Answers
Why does my player just fall through the floor right when I press play? 1 Answer