Package org.spout.math.vector

Examples of org.spout.math.vector.Vector3f.max()


      velocity = entity.getPhysics().getMovementVelocity(); //TODO: Check if it's alright.
    } else {
      velocity = Vector3f.ZERO;
    }

    velocity = velocity.max(factor.mul(-1)).min(factor);

    double s = 8000d;
    speedX = (short) (velocity.getX() * s);
    speedY = (short) (velocity.getY() * s);
    speedZ = (short) (velocity.getZ() * s);
 
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.