Quote
Error 94 Type of conditional expression cannot be determined because there is no implicit conversion between 'Microsoft.Xna.Framework.Vector3' and '<null>' C 349 40 3DgameTest
Vector3? GetRayPlaneIntersectionPoint(Ray ray, Plane plane)
{
float? distance = ray.Intersects(plane);
return distance.HasValue ? ray.Position + ray.Direction * distance.Value : null;
}

New Topic/Question
Reply


MultiQuote






|