RayCastHit Struct
Result of a Raycast.
Syntax
[Sansar.Script.Interface]
public struct RayCastHit
public struct RayCastHit
Remarks
Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
Members
See Also: Inherited members from ValueType.
Public Fields
|
ComponentId | Sansar.Script.ComponentId . The id of the Sansar.Simulation.RigidBodyComponent hit. |
|
Fraction | float . The query shape's position (upon contact) along the cast direction as a fraction of the original casting length. |
|
Location | Sansar.Vector . The location where the hit occurred. |
|
Normal | Sansar.Vector . The normal at the location where the hit occurred. |
Member Details
ComponentId Field
The id of the Sansar.Simulation.RigidBodyComponent hit.Syntax
[Sansar.Script.Interface]
public Sansar.Script.ComponentId ComponentIdRemarks
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 FractionRemarks
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 LocationRemarks
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
[Sansar.Script.Interface]
public Sansar.Vector NormalRemarks
Requirements
Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0
0 Comments