Examples of toVector3f()


Examples of org.terasology.math.Vector3i.toVector3f()

        }
        Quat4f rotation = new Quat4f();
        Vector3f tmp;

        Vector3i climbDir3i = state.getClimbDirection();
        Vector3f climbDir3f = climbDir3i.toVector3f();

        QuaternionUtil.setEuler(rotation, TeraMath.DEG_TO_RAD * state.getYaw(), 0, 0);
        tmp = new Vector3f(0.0f, 0.0f, -1.0f);
        QuaternionUtil.quatRotate(rotation, tmp, tmp);
        float angleToClimbDirection = tmp.angle(climbDir3f);
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.