Package com.jme3.math

Examples of com.jme3.math.Quaternion.inverse()


      float xDiff = currentVelocity.x - targetVelocity.x;
      float zDiff = currentVelocity.z - targetVelocity.z;
      Vector3f diffVector = new Vector3f(xDiff, 0f, zDiff);

      // diffVector nach z drehen
      diffVector = currentRotation.inverse().mult(diffVector);

      float zThrust = 0f, yThrust, xThrust = 0f;
      float engine = .1f, thrust = .1f;

      if (diffVector.z < 0) { // accelerate
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.