Locations

Discussion in 'Plugin Development' started by nubebuster, Dec 18, 2014.

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

    nubebuster

    I want to make a line of particles in the direction a player is looking.
    I want to add .2 block every loop.
    Is this the right way? Because it seems to set the direction very far.

    Code:
        for (double count = .4; count <= length; count += 0.2)
            loc.add(loc.getDirection().multiply(count));
     
  2. Offline

    JordyPwner

    Maybe this will help:

    http://bukkit.org/threads/spawning-a-line-of-particles.320385/
     
  3. Offline

    Cycryl

    get direction's vector is defaulted to 1 block in length so do:
    loc.add(loc.getDirection().multiply(0.2));
     
Thread Status:
Not open for further replies.

Share This Page