1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Calculate player fall speed

Discussion in 'Development' started by Kyd, Jan 15, 2019.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    How can I calculate how fast player is falling? I'm not asking for code, can you just give me some tips, please ?
     
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Acceleration: $player->gravity blocks per tickĀ².
    While the player is falling, you can get the distance from $player->fallDistance and time from $player->inAirTicks.
     
    corytortoise likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.