Forum rules - please read before posting.

Vertical Speed not returning to 0 OnGrounded()

Hi, sorry, it's me again! :) Anyone has an issue where the vertical speed keeps accumulating instead of returning to 0 when the player is grounded? This makes each subsequent fall of a character faster than the other. I've tried reseting SimulatedVerticalSpeed manually but it doesn't seem to work. Any tips would be appreciated, thank you.

Comments

  • Can you provide steps to recreate?

    The simulated vertical speed will be set to zero automatically when grounded, but this is only used when a Character Controller is present - is this the case?

  • It is, I'm using a Char Controller! I did a if (player.IsGrounded ())
    {
    AC.KickStarter.player.simulatedVerticalSpeed = 0; //hack to fix the player falling faster
    }

    and it seems to have solved the issue, but it`s very hacky

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.