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

Knockback from sign

Discussion in 'Development' started by #A6543, Feb 5, 2017.

  1. #A6543

    #A6543 Zombie

    Messages:
    267
    ---
     
    Last edited: Feb 6, 2017
    gistrec likes this.
  2. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    You should try calculating the direction to the sign instead of using the player's direction
     
    gistrec likes this.
  3. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    $direction = new Vector3($player->x - $b->x,$player->y - $b->y,$player->z - $b->z)
    And why do you use a knockback base of -0.1 ?
     
    gistrec 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.