Esempio n. 1
0
        public virtual unsafe Ray ContinueOnTargetHit(Ray direction, Vector3 hitNormal, float distance)
        {
            Ray *rayPtr1 = &direction;

            rayPtr1.origin += direction.direction * (distance + STRIKE_EPSILON);
            return(direction);
        }
Esempio n. 2
0
        public virtual unsafe Ray Continue(Ray direction, float distance)
        {
            Ray *rayPtr1 = &direction;

            rayPtr1.origin += direction.direction * (distance + STRIKE_EPSILON);
            return(direction);
        }