RayCastHit

RayCastHit Struct

Result of a Raycast.

Syntax

[Sansar.Script.Interface]
public struct RayCastHit

Remarks

 

Requirements

Namespace: Sansar.Simulation
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

Syntax

[Sansar.Script.Interface]
public Sansar.Script.ComponentId ComponentId

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

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

Remarks

 

Requirements

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


Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.