public void Update(World world, World.BodyFilterType filterType, params Body[] bodies) { _hitResult = world.CastRay(this, filterType, bodies); if (_hitResult != null) { HitDistance = _hitResult.HitDistance; } else { HitDistance = -1; } }
public void Update(World world, World.BodyFilterType filterType, params Body[] bodies) { _hitResult = world.CastRay(this, filterType, bodies); if (_hitResult != null) { HitDistance = _hitResult.HitDistance; } else { HitDistance = -1; } }