Gravity fixes (#2272)
* Adjust your rotation as you move (against walls and drifting) * Can't use bullets / firelocks / items to push off of. Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -58,12 +58,9 @@ namespace Content.Server.GameObjects.EntitySystems
|
||||
|
||||
public override void Update(float frameTime)
|
||||
{
|
||||
foreach (var (moverComponent, physics) in EntityManager.ComponentManager.EntityQuery<IMoverComponent, IPhysicsComponent>())
|
||||
foreach (var (moverComponent, physics) in EntityManager.ComponentManager.EntityQuery<IMoverComponent, IPhysicsComponent>(false))
|
||||
{
|
||||
var entity = moverComponent.Owner;
|
||||
if (_pauseManager.IsEntityPaused(entity))
|
||||
continue;
|
||||
|
||||
UpdateKinematics(entity.Transform, moverComponent, physics);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user