All Questions

Community

A
Chief A

About the bump

About the bump, that occurs because the default angle used by move_and_slide_with_snap is 0.785398 (or 45 degress) it is mathematically correct, but causes some form of computer inaccuracy, this is not a godot problem. So to avoid bumps on enemies (this is true for the player too), you need to set the angle parameter at least bigger than 45 degress or so. For example: '_velocity.y = move_and_slide_with_snap(_velocity, snap, FLOOR_NORMAL, true, 4, PI/3).y'. That way the snap could be multiplied for 50.0 too instead of a high number. Thank you, I'm learning a lot in this course.
  • Nathan Lovato replied

    Yup. Thanks :)