Example #1
0
 public override bool RayCast(Ray ray, float maximumLength, out RayHit rayHit)
 {
     return(triangleMesh.RayCast(ray, maximumLength, TriangleSidedness.DoubleSided, out rayHit));
 }
Example #2
0
 /// <summary>
 /// Tests a ray against the entry.
 /// </summary>
 /// <param name="ray">Ray to test.</param>
 /// <param name="maximumLength">Maximum length, in units of the ray's direction's length, to test.</param>
 /// <param name="rayHit">Hit location of the ray on the entry, if any.</param>
 /// <returns>Whether or not the ray hit the entry.</returns>
 public override bool RayCast(Ray ray, float maximumLength, out RayHit rayHit)
 {
     return(mesh.RayCast(ray, maximumLength, sidedness, out rayHit));
 }