Solved Method to generate a "radius"

Discussion in 'Plugin Development' started by Creeoer, Nov 13, 2014.

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

    Creeoer

    Bascially, how would I use the x y and z of a player location to generate a "radius."
     
  2. Offline

    ShadowLAX

    Creeoer A radius of what, exactly?...
     
  3. Offline

    Creeoer

    ShadowLAX Does it matter? I'm a shy bit fuzzy on locations, of course I could create a new location out of the constructor but that isn't the point. And it wouldn't matter what radius it was, I'm not sure if you could create like 16 different location variables representing the directions of the x y and z.
     
  4. Offline

    Skionz

  5. Offline

    Creeoer

    I ended up just taking the x and z and doing every single + and - operating I could do to it I can and check if that is in faction's land, thanks anyway.
     
  6. Offline

    ChipDev

    how to generate a raidus:
    d / 2
     
  7. Offline

    xTrollxDudex

    The only thing funny was about how you spelled "radius" incorrectly...
     
    Avygeil and teej107 like this.
  8. Offline

    ChipDev

    crap always get that wrong ^^
     
  9. Offline

    Hawqed

    ChipDev yo are you really good at configing plugins and stuff?
     
  10. Offline

    Skionz

    Read the documentation.
     
  11. Offline

    Dragonphase

    Creeoer

    It depends what you want to use this radius for. If you simply want to check if one location is within another location based on a radius, you could use Location#getDistance(Location) <= radius. You might have to look more into this.
     
  12. Offline

    Rocoty

    I'm not sure if you understand what a radius really is. A radius is just a number representing the length between the middle and the edge of a circle. The number 5 could be a radius just like any other positive number.

    You need to be more precise in what you really want here.
     
    Avygeil and AdamQpzm like this.
  13. Offline

    Creeoer

    Rocoty I solved this a few days ago, should probaly change the title. What I did was add +10 and -10 to every x and z position of the location in every order possible to allow me to check all areas possible, which works fine for me at the momement.
     
Thread Status:
Not open for further replies.

Share This Page