Expand description
Picking: which triangle a ray hits, as the engine finds the object under the pointer.
Original: Picking::Scene::Intersect, Runtime 0x180126f50 (the triangle test).
Functions§
- face_
normal - The hit triangle’s unit face normal as
Intersectgives it:(b − a) × (c − a)scaled by1 / sqrtf(y² + x² + z²)(left as it is when that length is zero). - point
- The point at distance
talong a ray. - triangle
- Test a ray against one triangle. Returns the distance along the ray when the ray hits the
triangle no farther than
maximum.