Package aspect.util

Examples of aspect.util.Angles


           
            Vector3 pos = new Vector3(Trig.sin(branchYaw), -Trig.cos(branchPitch), Trig.cos(branchYaw));
            pos = pos.times(branchLength / 2.0f);
            pos.y += branchHeight - height / 2;
           
            Angles ang = Angles.zero();
            ang.pitch = 75;
            ang.yaw = branchYaw;
           
            Matrix4x4 transform = Matrix4x4.TRS(pos, ang, Vector3.one());
            transformPoints(vertices, transform, vpos, vertexDataPipe(LOD));
View Full Code Here


        int index = start;
        for (int i = 0; i < lod; i++) {
            float lon = i * step;
            for (int j = 0; j < vlod; j++) {
                float lat = j * step - 90.0f;
                Vector3 vert1 = Vector3.fromAngles(new Angles(lat, lon, 0.0f), radius);
                Vector3 vert2 = Vector3.fromAngles(new Angles(lat, lon + step, 0.0f), radius);
                Vector3 vert3 = Vector3.fromAngles(new Angles(lat + step, lon + step, 0.0f), radius);
                Vector3 vert4 = Vector3.fromAngles(new Angles(lat + step, lon, 0.0f), radius);
               
                index += copyVector3(vert1, dest, index, 1);
                index += copyVector3(vert2, dest, index, 1);
                index += copyVector3(vert3, dest, index, 1);
                index += copyVector3(vert4, dest, index, 1);
View Full Code Here

        ent.transform.position = ent.transform.position.plus(forward);
    }

    public void look() {
       
        Angles eulerAngles = ent.transform.eulerAngles();

        eulerAngles.pitch += getMouseDY() * mouseSensitivity;
        eulerAngles.yaw += getMouseDX() * mouseSensitivity;
       
       
View Full Code Here

TOP

Related Classes of aspect.util.Angles

Copyright © 2018 www.massapicom. 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.