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

@@ -133,7 +133,7 @@ namespace Content.Server.GameObjects.Components.Weapon.Melee
for (var i = 0; i < increments; i++)
{
var castAngle = new Angle(baseAngle + increment * i);
var res = _physicsManager.IntersectRay(mapId, new Ray(position, castAngle.ToVec(), 19), _range, ignore);
var res = _physicsManager.IntersectRay(mapId, new CollisionRay(position, castAngle.ToVec(), 19), _range, ignore);
if (res.HitEntity != null)
{
resSet.Add(res.HitEntity);