fix interpolation!
This commit is contained in:
parent
bc3bf1dcab
commit
2cb30a4014
1 changed files with 3 additions and 3 deletions
|
@ -337,9 +337,9 @@ public class RenderAdapter {
|
||||||
public static AxisAlignedBB getLiveEntityBB(Entity entity, float partialTicks) {
|
public static AxisAlignedBB getLiveEntityBB(Entity entity, float partialTicks) {
|
||||||
AxisAlignedBB bb = entity.getEntityBoundingBox();
|
AxisAlignedBB bb = entity.getEntityBoundingBox();
|
||||||
|
|
||||||
double shiftX = (entity.posX - entity.lastTickPosX) * (double) partialTicks;
|
double shiftX = (entity.prevPosX - entity.posX) * (1d - partialTicks);
|
||||||
double shiftY = (entity.posY - entity.lastTickPosY) * (double) partialTicks;
|
double shiftY = (entity.prevPosY - entity.posY) * (1d - partialTicks);
|
||||||
double shiftZ = (entity.posZ - entity.lastTickPosZ) * (double) partialTicks;
|
double shiftZ = (entity.prevPosZ - entity.posZ) * (1d - partialTicks);
|
||||||
|
|
||||||
return bb.offset(shiftX, shiftY, shiftZ);
|
return bb.offset(shiftX, shiftY, shiftZ);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue