private static void refreshCamera()
{
Entity entity = Minecraft.getMinecraft().getRenderViewEntity();
if(entity == null) return;
float partialTicks = Animation.getPartialTickTime();
ICamera newCam = new Frustum();
double d0 = entity.lastTickPosX + (entity.posX - entity.lastTickPosX) * partialTicks;
double d1 = entity.lastTickPosY + (entity.posY - entity.lastTickPosY) * partialTicks;
double d2 = entity.lastTickPosZ + (entity.posZ - entity.lastTickPosZ) * partialTicks;
newCam.setPosition(d0, d1, d2);
cameraX = d0;
cameraY = d1;
cameraZ = d2;
camera = newCam;
}
ClientProxy.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Hard-Science
作者:
评论列表
文章目录