Struct Ray
Namespace: Unity.Physics
Syntax
public struct Ray
Constructors
Ray(float3, float3)
Declaration
public Ray(float3 origin, float3 direction)
Parameters
Type | Name | Description |
---|---|---|
float3 | origin | |
float3 | direction |
Fields
Origin
Declaration
public float3 Origin
Field Value
Type | Description |
---|---|
float3 |
Properties
Direction
Declaration
public float3 Direction { get; set; }
Property Value
Type | Description |
---|---|
float3 |
ReciprocalDirection
Declaration
public float3 ReciprocalDirection { get; }
Property Value
Type | Description |
---|---|
float3 |