Exemple #1
0
        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;
            }
        }
Exemple #2
0
        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;
			}
        }