CollisionCastResult
A result of collision cast.
Properties
The index of the sub-mesh that owns the hit triangle. This can be used to identify which material was hit from ModelComponent.materials. When the hit collider is created from ShapeResource.createStaticMesh, this value is a non-negative index. Otherwise, this value is -1.
The index of the collision's shapeResource in the CollisionComponent's shapes array.
The UV coordinate of the hit point on the first UV channel (UV0). When the hit collider is created from ShapeResource.createStaticMesh and the underlying mesh contains a UV0 set, this value is the interpolated UV at the hit position. Otherwise, this value is Vector2.ZERO.
The UV coordinate of the hit point on the second UV channel (UV1). When the hit collider is created from ShapeResource.createStaticMesh and the underlying mesh contains a secondary UV set (UV1), this value is the interpolated UV at the hit position. Otherwise, this value is Vector2.ZERO.