Author Topic: Add duck to standard asset player controller?  (Read 214 times)


  • Full Member
  • ***
  • Posts: 122
    • View Profile
Add duck to standard asset player controller?
« on: August 07, 2018, 10:52:03 AM »
I want to add duck to the standard asset 1st person player controller. At first I figured I would just scale the Y of the FPSController object, but when I added a gun that's a child of the camera (which is in turn a child of the FPSController) then I realised it's squashing that model.

Another way I tried is to Set Property change the height setting in the character controller component, but that only works within a small range that isn't creating enough duck. Messing around I found that setting it higher quickly caps off and does nothing to increase, as does setting it lower.

Lastly, I tried just moving the camera down. That doesn't seem to work because it springs back to where it started. I'm guessing the player controller code is doing that.

So anyone know a Playmaker way to add ducking?