Sansar Docs
Ask or search…
K

RayCastHit

RayCastHit Struct

Result of a Raycast.

Syntax

[Sansar.Script.Interface] public struct RayCastHit

Member Details

ComponentId Field

Syntax

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

Fraction Field

The query shape's position (upon contact) along the cast direction as a fraction of the original casting length.

Syntax

[Sansar.Script.Interface] public float Fraction

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

Location Field

The location where the hit occurred.

Syntax

[Sansar.Script.Interface] public Sansar.Vector Location

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0

Normal Field

The normal at the location where the hit occurred.

Syntax

Remarks

Requirements

Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0


Last modified 7mo ago