Refactor UpdateKinematics() and fix a lot of Content warnings (#1709)
Most warnings were related to EntityQuery and IPhysicsComponent. Partially fixes #1650 and fixes #1682
This commit is contained in:
@@ -30,11 +30,10 @@ namespace Content.Client.GameObjects.EntitySystems
|
||||
return;
|
||||
}
|
||||
|
||||
var physics = playerEnt.GetComponent<IPhysicsComponent>();
|
||||
playerEnt.TryGetComponent(out ICollidableComponent? collidable);
|
||||
physics.Predict = true;
|
||||
var collidable = playerEnt.GetComponent<ICollidableComponent>();
|
||||
collidable.Predict = true;
|
||||
|
||||
UpdateKinematics(playerEnt.Transform, mover, physics, collidable);
|
||||
UpdateKinematics(playerEnt.Transform, mover, collidable);
|
||||
}
|
||||
|
||||
public override void Update(float frameTime)
|
||||
|
||||
Reference in New Issue
Block a user