Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

calculate next position of an entity

Comments in 'Plugin Development' started by Creeperface, May 8, 2016.

  1. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    i know current Location (x, y, z, pitch, yaw) of entity, i know speed in blocks per second and time difference is 1 second so how to calculate next position?
    Last edited: May 8, 2016
  2. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Maby you can simulate
    PHP:
    Entity::onUpdate()
  3. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    Im making onUpdate() method

Share This Page

Advertisement