Examples of mag()


Examples of vazkii.botania.common.core.helper.Vector3.mag()

        }
      }
    }

    Vector3 vec3m = new Vector3(motionX, motionY, motionZ);
    if (vec3m.mag() < 1.0F) {
      if (!worldObj.isRemote) {
        Entity item = getEntityItem().getItem().createEntity(worldObj, this, getEntityItem());
        if (item == null) {
          item = new EntityItem(worldObj, posX, posY, posZ, getEntityItem());
          worldObj.spawnEntityInWorld(item);
View Full Code Here

Examples of vazkii.botania.common.core.helper.Vector3.mag()

        Entity e = (Entity) spark;
        Vector3 orig = new Vector3(e.posX , e.posY + 0.25, e.posZ);
        Vector3 end = new Vector3(posX, posY + 0.25, posZ);
        Vector3 diff = end.copy().sub(orig);
        Vector3 movement = diff.copy().normalize().multiply(0.05);
        int iters = (int) (diff.mag() / movement.mag());
        float huePer = 1F / iters;
        float hueSum = (float) Math.random();

        Vector3 currentPos = orig.copy();
        for(int i = 0; i < iters; i++) {
View Full Code Here

Examples of vazkii.botania.common.core.helper.Vector3.mag()

          if(par3World.isRemote) {
            Vector3 orig = new Vector3(boundTile.posX + 0.5, boundTile.posY + 0.5, boundTile.posZ + 0.5);
            Vector3 end = new Vector3(par4 + 0.5, par5 + 0.5, par6 + 0.5);
            Vector3 diff = end.copy().sub(orig);
            Vector3 movement = diff.copy().normalize().multiply(0.05);
            int iters = (int) (diff.mag() / movement.mag());
            float huePer = 1F / iters;
            float hueSum = (float) Math.random();

            Vector3 currentPos = orig.copy();
            for(int i = 0; i < iters; i++) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.