Core/Entities: Phasing rewrite

This commit is contained in:
hondacrx
2018-03-28 11:09:30 -04:00
parent caad52f636
commit fa35d60f60
72 changed files with 2254 additions and 1146 deletions
+4 -4
View File
@@ -227,22 +227,22 @@ namespace Game.Collision
public class DynamicTreeIntersectionCallback : WorkerCallback
{
public DynamicTreeIntersectionCallback(List<uint> phases)
public DynamicTreeIntersectionCallback(PhaseShift phaseShift)
{
_didHit = false;
_phases = phases;
_phaseShift = phaseShift;
}
public override bool Invoke(Ray r, IModel obj, ref float distance)
{
_didHit = obj.IntersectRay(r, ref distance, true, _phases);
_didHit = obj.IntersectRay(r, ref distance, true, _phaseShift);
return _didHit;
}
public bool didHit() { return _didHit; }
bool _didHit;
List<uint> _phases;
PhaseShift _phaseShift;
}