0

How could I adjust the Velocity of a Player.
According to the Direction of the Player.
So when a Player turns with a certain velocity,
The velocity will change to the direction of the player.
So he could freely move around in mid-air, to any direction he would like

JavaDocs: http://jd.bukkit.org/rb/apidocs/org/bukkit/util/Vector.html

user2803086
  • 153
  • 1
  • 3
  • 10

1 Answers1

0

I believe the Location class has a getVector method, which will automatically create a velocity vector based on the pitch and yaw of the player. You'd want to set the Y vector to 0 if you don't want them to just fly infinitely.

beechboy2000
  • 151
  • 6