Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
1.1.0:picking [2024/04/09 15:58] admin1.1.0:picking [2024/04/09 15:59] (current) admin
Line 52: Line 52:
     ShowMessage(Format('Intersection-Point = (%n, %n, %n)', [LIntersect.X, LIntersect.Y, LIntersect.Z]));     ShowMessage(Format('Intersection-Point = (%n, %n, %n)', [LIntersect.X, LIntersect.Y, LIntersect.Z]));
          
-  // Or perform a triangle pick+  // Or perform a triangle pick and output the triangle points and the instance pointer too
   if LMesh.PickTriangle(LAbsRayPos, LAbsRayDir, LTriResult) then   if LMesh.PickTriangle(LAbsRayPos, LAbsRayDir, LTriResult) then
     ShowMessage(Format('instance=%d, Intersection-Point = (%n, %n, %n), triangle-P1=(%n,%n,%n), triangle-P2=(%n,%n,%n), triangle-P3=(%n,%n,%n)',      ShowMessage(Format('instance=%d, Intersection-Point = (%n, %n, %n), triangle-P1=(%n,%n,%n), triangle-P2=(%n,%n,%n), triangle-P3=(%n,%n,%n)', 
Line 65: Line 65:
 end; end;
 </file> </file>
 +
 +Next step: [[charactercontrolling|CharacterControlling]]