Table of Contents

Struct Physics.RaycastHit

Namespace
AO
Assembly
CoreAssembly.dll

Raycast hit information.

public struct Physics.RaycastHit
Inherited Members
Extension Methods

Fields

Collider

The collider that was hit.

public Collider Collider

Field Value

Collider

Fraction

Percentage of how far along the ray the hit happened.

public float Fraction

Field Value

float

Normal

The normal of the surface the ray hit.

public Vector2 Normal

Field Value

Vector2

Point

The point in world space where the ray hit the collider.

public Vector2 Point

Field Value

Vector2

Properties

fraction

Percentage of how far along the ray the hit happened.

[Obsolete("Use Fraction. This will become an error in proto 40.")]
public float fraction { get; }

Property Value

float

normal

The normal of the surface the ray hit.

[Obsolete("Use Normal. This will become an error in proto 40.")]
public Vector2 normal { get; }

Property Value

Vector2

point

The point in world space where the ray hit the collider.

[Obsolete("Use Point. This will become an error in proto 40.")]
public Vector2 point { get; }

Property Value

Vector2