Package codechicken.lib.vec

Examples of codechicken.lib.vec.Vector3.apply()


            for (RedstoneTorchModel m : torches)
                if (m.on && rand.nextInt(torches.size()) == 0)
                {
                    Vector3 pos = new Vector3(rand.nextFloat(), rand.nextFloat(), rand.nextFloat()).add(-0.5).multiply(0.05, 0.1, 0.05);
                    pos.add(m.lightPos);// height
                    pos.apply(part.rotationT()).add(part.x(), part.y(), part.z());
                    part.world().spawnParticle("reddust", pos.x, pos.y, pos.z, 0, 0, 0);
                }
        }
    }
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.