GridCoordinates API changes.

This commit is contained in:
Acruid
2020-01-25 01:39:14 -08:00
parent a86363a6d2
commit a692899f5b
8 changed files with 14 additions and 19 deletions

View File

@@ -198,7 +198,7 @@ namespace Content.Server.GameObjects.EntitySystems
projComp.IgnoreEntity(plyEnt);
var transform = plyEnt.Transform;
var dirVec = (coords.ToWorld(_mapManager).Position - transform.WorldPosition).Normalized;
var dirVec = (coords.ToMapPos(_mapManager) - transform.WorldPosition).Normalized;
if (!throwEnt.TryGetComponent(out PhysicsComponent physComp))
physComp = throwEnt.AddComponent<PhysicsComponent>();