Forum rules - please read before posting.

FirstPersonCamera.cs issue with the Speed parameter for Built

edited August 2018 in Engine development
After trying to adjust the speed of the head bob, I noticed it has no effect.  I browsed the source and indeed the bobbingSpeed variable is unused aside from the editor script which modifies it. 

Comments

  • edited August 2018
    Probably the intended behaviour:

    public float GetHeadBobSpeed ()
    {
       if (player != null && player.IsGrounded ())
       {
          return Mathf.Abs (player.GetMoveSpeed () * bobbingSpeed);
       }
       return 0f;
    }
  • Quite right - I'll look into it.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.