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!

Eventually found the line I needed to comment out to make this work…

m_RigidBody.Sleep();

comment that out, and everything works dandy.