Making lines

Discussion in 'Plugin Development' started by kunhunjon, Jul 23, 2014.

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

    kunhunjon

    I want to make a plugin that draws a line between two points set by a user. Kinda like the line brush in voxel sniper. I can figure out the details and basic stuff but I can't come up with any algorithm to do the line drawing. Anyone have an idea of some sort of algorithm that could do this?
     
  2. Offline

    xTrollxDudex

    Trigonometry. Make sure you check if the x and z are the same, it would be much faster to do that than waste your time trying to perform a trig calculation and figuring out te hypotenuse is the same length as the opposite and adjacent legs...
     
  3. Offline

    EcMiner

    You can use the BlockIterator class
     
Thread Status:
Not open for further replies.

Share This Page