public void setRandomOrientation(Vector3f origin, Vector3f up) { up.copy(v0); v1.x = (float) (0.7 - Math.random() * 1.4); v1.y = (float) (0.7 - Math.random() * 1.4); v1.z = (float) (0.7 - Math.random() * 1.4); MathHelper.getRandomPosition(origin, v1, 16384.0f, 8192.0f); ai.orient(v1, v0, 0); }
public void orientTowards(float x, float y, float z, float ux, float uy, float uz) { v0.x = x; v0.y = y; v0.z = z; v1.x = ux; v1.y = uy; v1.z = uz; ai.orient(v0, v1, 0); }
public float orientTowards(GraphicObject object, Vector3f up, float deltaTime) { return ai.orient(object.getPosition(), up, deltaTime); }
public float orientTowards(GraphicObject object, float deltaTime) { object.getUpVector().copy(v0); // v0.negate(); return ai.orient(object.getPosition(), v0, deltaTime); }