mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-10 06:36:14 +03:00
Reduced jittery interpolation
This commit is contained in:
parent
331cf2e269
commit
3817b159cf
@ -143,7 +143,8 @@ public class EntityIO{
|
||||
if(sl) cont("if(!islocal)");
|
||||
|
||||
if(sf){
|
||||
st(field.name + lastSuf + " = this." + field.name + targetSuf);
|
||||
//TODO adding + targetSuf to the assignment fixes units being interpolated incorrectly during physics, but makes interpolation snap instead.
|
||||
st(field.name + lastSuf + " = this." + field.name);
|
||||
}
|
||||
|
||||
io(field.type, "this." + (sf ? field.name + targetSuf : field.name) + " = ");
|
||||
|
@ -60,8 +60,8 @@ public class PhysicsProcess implements AsyncProcess{
|
||||
ref.body.layer =
|
||||
entity.type.allowLegStep ? layerLegs :
|
||||
entity.isGrounded() ? layerGround : layerFlying;
|
||||
ref.x = entity.x();
|
||||
ref.y = entity.y();
|
||||
ref.x = entity.x;
|
||||
ref.y = entity.y;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user