Package com.flansmod.common.vector

Examples of com.flansmod.common.vector.Vector3f.normalise()


     
      Vector3f intent = new Vector3f(moveX, 0, moveZ);
     
      if(Math.abs(intent.lengthSquared()) > 0.1)
      {
        intent.normalise();
       
        ++legSwing;
     
        intent = axes.findLocalVectorGlobally(intent);
             
View Full Code Here


          mat.rotate(dAngle * type.wheelSpringStrength, rotateAround);
         
          axes.rotateGlobal(-dAngle * type.wheelSpringStrength, rotateAround);
                   
          Vector3f newWheelPos = new Vector3f(mat.m00, mat.m10, mat.m20);
          newWheelPos.normalise().scale(newLength);
         
          //The proportion of the spring adjustment that is applied to the wheel. 1 - this is applied to the plane
          float wheelProportion = 0.75F;
         
          //wheel.motionX = (newWheelPos.x - currentWheelPos.x) * wheelProportion;
 
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.