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

Skeleton aim AI

Discussion in 'Development' started by Heisenborger, Aug 26, 2018.

  1. Heisenborger

    Heisenborger Spider

    Messages:
    9
    I'm making a plugin which adds some mobs to pocketmine and i'm stuck with the skeleton aim.

    For shooting arrows i'm doing the same as PocketMine does here: https://github.com/pmmp/PocketMine-...7077432f3c045/src/pocketmine/item/Bow.php#L53

    The problem is i have no idea how to calculate the arrow motion from a player position. I think the motion Y is related to the distance from the target but i'm stuck here, any help is appreciated
     
  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.