Esempio n. 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;
            }
        }
Esempio n. 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;
			}
        }