crashcat docs
    Preparing search index...

    Function canWalkStairs

    • Checks if the character has steep slopes it might need to walk up.

      This is useful to determine if the character should attempt stair-walking logic. Returns true if the character is supported and has steep slope contacts that the character is pushing into (based on velocity direction).

      Parameters

      • character: KCC

        the character controller

      • linearVelocity: Vec3

        the desired linear velocity (used to check movement direction)

      Returns boolean

      true if there are steep slopes the character might need to walk up