Intersection
struct in Physics
Description
A ray intersection result.
Fields
Name | Type | Description |
---|---|---|
collider | Node | A handle of the collider with which intersection was detected. |
normal | Vector3 | A normal at the intersection position. |
position | Vector3 | A position of the intersection in world coordinates. |
feature | FeatureId | Additional data that contains a kind of the feature with which intersection was detected as well as its index. Important notes.FeatureId::Face might have index that is greater than amount of triangles in a triangle mesh, this means that intersection was detected from “back” side of a face. To “fix” that index, simply subtract amount of triangles of a triangle mesh from the value. |
toi | float | Distance from the ray origin. |