Table of Contents

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

float

entity

Game object hit by the ray.

public GameObject entity

Field Value

GameObject

hasHit

Non-zero if the ray registered a hit.

public byte hasHit

Field Value

byte

isTrigger

Non-zero if the collider hit was a trigger.

public byte isTrigger

Field Value

byte

normal

Surface normal at the point of impact.

public Vector3 normal

Field Value

Vector3

point

Point of intersection in world space.

public Vector3 point

Field Value

Vector3

Properties

Hit

Gets a value indicating whether the ray intersected any collider.

public bool Hit { get; }

Property Value

bool

Trigger

Gets a value indicating whether the hit collider was a trigger.

public bool Trigger { get; }

Property Value

bool