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

$gravity

Discussion in 'Development' started by Herojhjh, Feb 23, 2018.

  1. Herojhjh

    Herojhjh Silverfish

    Messages:
    20
    GitHub:
    herojhjh
    How $gravity works in pmmp?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Context? Be more descriptive please, thanks :)
     
    xXNiceAssassinlo YT likes this.
  3. Herojhjh

    Herojhjh Silverfish

    Messages:
    20
    GitHub:
    herojhjh
    i mean protected $gravity in projectile or something
     
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    It is used in Entity::applyGravity(), called in Entity::tryChangeMovement().

    In other words, it is used to calculate the speed of falling.
     
    xXNiceAssassinlo YT 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.