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

Solved More precise player direction?

Discussion in 'Development' started by minijaham, Mar 3, 2021.

  1. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Hello, I've been looking for ways to get better cardinal directions(PMMP currently has 0,1,2,3 built-in, which is S,W,N,E)

    I want to get something like SE(south east) and NW(north west)

    I've been looking for ways to use direction vector, but how exactly...?
    upload_2021-3-3_22-15-31.png

    This is what getDirectionVector() gives me(omg! a lot of numbers! :l), and I'm not entirely sure how to work on what I wanted to do.
     
  2. Primus

    Primus Zombie Pigman

    Messages:
    749
    minijaham and GamakCZ like this.
  3. minijaham

    minijaham Skeleton

    Messages:
    801
    GitHub:
    minijaham
    Primus likes this.
  4. mmm545

    mmm545 Baby Zombie

    Messages:
    152
    GitHub:
    mmm545
    :flushed:
     
    Primus 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.