Struct RaycastHit
- Namespace
- BasilEngine
- Assembly
- BasilEngine.dll
[Disabled]
public struct RaycastHit
- Inherited Members
Fields
distance
Distance from the ray origin to the hit point.
public float distance
Field Value
entity
Game object hit by the ray.
public GameObject entity
Field Value
hasHit
Non-zero if the ray registered a hit.
public byte hasHit
Field Value
isTrigger
Non-zero if the collider hit was a trigger.
public byte isTrigger
Field Value
normal
Surface normal at the point of impact.
public Vector3 normal
Field Value
point
Point of intersection in world space.
public Vector3 point
Field Value
Properties
Hit
Gets a value indicating whether the ray intersected any collider.
public bool Hit { get; }
Property Value
Trigger
Gets a value indicating whether the hit collider was a trigger.
public bool Trigger { get; }