예제 #1
0
        public RayCastResult RayCast(float3 startPoint, float3 endPoint, Entity camera)
        {
            RayCastResult result = new RayCastResult()
            {
                entityHit = Entity.Null, t = 1.0f
            };

            RayCastNative(cppWrapper, startPoint, endPoint, camera, ref result);
            return(result);
        }
예제 #2
0
 protected static extern void RayCastNative(IntPtr emr, float3 startPoint, float3 endPoint, Entity camera, ref RayCastResult result);