Increasing boat speed

Discussion in 'Plugin Development' started by fullwall, Feb 12, 2011.

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

    fullwall

    I'm making a boat plugin on the side, and I wondered how you would go about increasing forward boat speed. I've tried just increasing X, but then rotation doesn't work. What is the best way to just increase boat speed when a player attempts to move foward?
     
  2. Offline

    retsrif

    Your "Unannounced" plugin obviously deals with boats eh? Asking about rotation before and now speed? Doesn't the javadocs have something about this? You probably have to edit the Boat class.
     
  3. Offline

    fullwall

    We'll see, we'll see :p. You might be barking up the wrong tree though... I'll check the javadocs now, I guess. Anyone else have methods?

    EDIT: Checked... What is this motX?
     
  4. Offline

    retsrif

    Hmmm.... not sure. Give me the link to the boat class and I'll check it out. So my guess is close eh? :)

    EDIT: Checked it out. Use setVelocity();. It should work.
     
  5. Offline

    fullwall

    Well, you'll just have to find out. Bear in mind that I do a lot of plugin requests for friends... SetVelocity() was what I was using XD. It doesn't work for me... setVelocity(x*3,y,z*3) would just make it go forward, no turning.
    --- merged: Feb 12, 2011 2:27 PM ---
    All I need is a way to increase speed on land, and I'm set.
     
  6. Offline

    Redecouverte

    well x and z velocity produce the direction (values can also be negative)

    and keep in mind that there is a max speed limit of 0.4D in each direction, though this can be changed with latest bukkit
     
Thread Status:
Not open for further replies.

Share This Page