Constant Upward Velocity

Discussion in 'Plugin Development' started by dlcruz129, Feb 26, 2014.

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

    dlcruz129

    Hello everyone!

    I am currently developing a plugin that adds the command /rocket <player>. This command will launch the player into the air, then exploding the player when they either hit a surface or reach Y256. (You may have seen a similar command on Garry's Mod servers). My question is, how can I make the player travel in an upward direction, at a constant speed? (Setting the player's velocity somewhat works, however gravity slows the velocity down after a moment or so.)

    Any help is appreciated. :)
    dlcruz129
     
  2. Offline

    xTigerRebornx

    dlcruz129 Use a repeating task/BukkitRunnable to constantly set their velocity until they meet the conditins
     
    Garris0n likes this.
Thread Status:
Not open for further replies.

Share This Page