RayCastHit
RayCastHit Struct
Result of a Raycast.
Syntax
[Sansar.Script.Interface] public struct RayCastHit
Member Details
ComponentId Field
Syntax
Remarks
RequirementsNamespace: 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
RequirementsNamespace: 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
RequirementsNamespace: 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
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Last updated