WiP movement prediction.
This commit is contained in:
@@ -83,7 +83,7 @@ namespace Content.Server.Throw
|
||||
physComp = thrownEnt.AddComponent<PhysicsComponent>();
|
||||
|
||||
var timing = IoCManager.Resolve<IGameTiming>();
|
||||
var spd = throwForce / (1f / timing.TickRate); // acceleration is applied in 1 tick instead of 1 second, scale appropriately
|
||||
var spd = throwForce * 60; // acceleration is applied in 1 tick instead of 1 second, scale appropriately
|
||||
|
||||
physComp.SetController<ThrowController>();
|
||||
(physComp.Controller as ThrowController)?.StartThrow(angle.ToVec() * spd);
|
||||
|
||||
Reference in New Issue
Block a user