public void SetSpeed(Entity entity, Farseer.Framework.Vector2 direction) { var phyComp = entity.GetComponent<Physics2dComponent>(); if (phyComp == null || phyComp.Body == null) return; phyComp.Body.LinearVelocity = (_speed * direction); }