Skip to main content

Module picking

Module picking 

Source
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 Intersect gives it: (b − a) × (c − a) scaled by 1 / sqrtf(y² + x² + z²) (left as it is when that length is zero).
point
The point at distance t along 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.