Projectile trajectory

Discussion in 'Plugin Requests' started by Goseale, Jan 8, 2019.

  1. Offline

    Goseale

    Plugin category: Tools and utilities

    Minecraft version: Spigot 1.13.2

    Suggested name: Projectile tracing

    What I want: I would like a plugin which displays with particles the path a projectile will take for example an arrow(in this case while you are charging the bow take a count the speed its going to be) and in other cases just display the particles when holding the projectile, and also other projectiles in minecraft.
    If you could make it as accurate as possible that would be apreciated

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: plugin.seetrajectory.bow, plugin.seetrajectory.snowball, etc

    When I'd like it by: Friday (if possible, i know this is hard)
     
  2. Offline

    dbaum102

    Ill give it a go... Shouldnt be too hard to figure out :)
     
    Goseale likes this.
  3. Offline

    dbaum102

    Unfortunately I have given it my best effort and have decided to call it quits... Figuring out the formula for the arrow proved a difficult task... I had tried to even just shoot an invisible arrow but tracking it by its unique id was not working out for me and I have decided to give it up, I know it can be done i have seen a few other plugins but they were all discontinued with little documentation on how they did it. I am no expert with vectors and maybe one day I might revisit this project when I have a better understanding of them. Sorry. :(
     
  4. @Goseale
    I'll give this a shot, no promises though, and regarding the bow charging, might not be possible unless I can figure out exact initial velocity values.
    I will do it with i and j vector notation and SUVAT (Minecraft's acceleration is constant, drag is the only thing applied to the arrow). Should have a concept up and running in a little while.

    Not had much luck with this the past few hours, I'll keep going at it.
     
    Last edited: Jan 11, 2019 at 12:09 PM
  5. Offline

    dbaum102

    you can make a timer for the PlayerInteractEvent and check to see if they are holding a bow and look to see how many ticks its charged i think theres also a wiki that says how many ticks the charge takes but I didnt keep trying cuz that took a while and never really got it working.
     
    Last edited: Jan 11, 2019 at 12:22 PM
  6. @dbaum102
    That's all fine, the problem is calculating the trajectory. The curve is OK but I can't get the initial velocity correctly.
     
  7. Offline

    Goseale

    No problems, i know you did the best of you but the formula must be super hard and im not a math guy :/


    Ok
     

Share This Page