Replaces constructors of Ray with CollisionRay (#594)

Companion of https://github.com/space-wizards/RobustToolbox/pull/951
This commit is contained in:
Tyler Young
2020-02-06 08:17:37 -05:00
committed by GitHub
parent 57ec3e57dd
commit fcccae5df0
4 changed files with 4 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Ranged.Hitscan
var userPosition = user.Transform.WorldPosition; //Remember world positions are ephemeral and can only be used instantaneously
var angle = new Angle(clickLocation.Position - userPosition);
var ray = new Ray(userPosition, angle.ToVec(), (int)(CollisionGroup.Impassable | CollisionGroup.MobImpassable));
var ray = new CollisionRay(userPosition, angle.ToVec(), (int)(CollisionGroup.Impassable | CollisionGroup.MobImpassable));
var rayCastResults = IoCManager.Resolve<IPhysicsManager>().IntersectRay(user.Transform.MapID, ray, MaxLength, user);
Hit(rayCastResults, energyModifier);