Revert pulling newtons third law stuff (#6813)
This commit is contained in:
@@ -114,12 +114,6 @@ namespace Content.Server.Physics.Controllers
|
|||||||
physics.WakeBody();
|
physics.WakeBody();
|
||||||
var impulse = accel * physics.Mass * frameTime;
|
var impulse = accel * physics.Mass * frameTime;
|
||||||
physics.ApplyLinearImpulse(impulse);
|
physics.ApplyLinearImpulse(impulse);
|
||||||
|
|
||||||
if (EntityManager.TryGetComponent<PhysicsComponent?>(puller, out var pullerPhysics))
|
|
||||||
{
|
|
||||||
pullerPhysics.WakeBody();
|
|
||||||
pullerPhysics.ApplyLinearImpulse(-impulse);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user