Velocities Help

Discussion in 'Plugin Development' started by boysnnoco, Nov 28, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    boysnnoco

    I need help with comparing the velocity of a player to some other other velocity, I know about the player.getVelocity() but I don't know how to compare it to another velocity.
     
  2. Offline

    adam753

    You mean to check if two velocities are equal? Use .equals() .
     
  3. Offline

    boysnnoco

    I mean check if a player's velocity is over a certain thrash hold like if(player.getVelocity() > [need help here])
     
  4. Offline

    xTrollxDudex

    boysnnoco
    A players velocity is a vector. What you want to check is probably the vectors x, y or z
     
  5. Offline

    adam753

  6. Offline

    boysnnoco

Thread Status:
Not open for further replies.

Share This Page