Struct RayCastResult
The RayCast(float3, float3, Entity) function returns this structure.
Namespace: Unity.Tiny.HitBox2D
Syntax
public struct RayCastResult : IComponentData
Fields
entityHit
Specifies the hit entity, or NONE if no entity is hit.
Declaration
public Entity entityHit
Field Value
Type | Description |
---|---|
Entity |
t
Specifies a normalized [0..1] distance along a ray. The hit location is: hit = rayStart + (rayEnd-rayStart)*t; If the ray cast starts inside a hit box, t is the exit value.
Declaration
public float t
Field Value
Type | Description |
---|---|
System.Single |