Fixed Parallax not moving players serverside

This commit is contained in:
Anuken
2020-12-10 18:21:39 -05:00
parent 2d6db1583b
commit c54f398063
3 changed files with 12 additions and 3 deletions

View File

@@ -29,4 +29,15 @@ abstract class PhysicsComp implements Velc, Hitboxc, Flyingc{
void impulse(Vec2 v){
impulse(v.x, v.y);
}
void impulseNet(Vec2 v){
impulse(v.x, v.y);
//manually move units to simulate velocity for remote players
if(isRemote()){
float mass = mass();
move(v.x / mass, v.y / mass);
}
}
}