This looks stunning already! If you make a structured development plan it'll definitely help you finish the project, I'm sure! So what are those plans?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menuprivate Object3D getBuilding(String link, float x, float y, float z, float rotate, String texture) {
Object3D obj = null;
Object3D[] imports = Loader.load3DS(link, 1f);
if (imports.length > 0) {
obj = imports[0];
}
obj.rotateX((float) -Math.PI / 2f);
obj.rotateY((float) ((rotate / 180) * Math.PI));
obj.translateMesh();
obj.rotateMesh();
obj.setTranslationMatrix(new Matrix());
obj.setRotationMatrix(new Matrix());
obj.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
obj.setEnvmapped(Object3D.ENVMAP_ENABLED);
obj.setTexture(texture);
obj.translate(x, y, z);
obj.build();
return obj;
}
Page created in 0.018 seconds with 12 queries.