RayStep Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a raycast that is a portion of a longer raycast.
[System.Serializable]
public struct RayStep
[<System.Serializable>]
type RayStep = struct
Public Structure RayStep
- Inheritance
-
RayStep
- Attributes
Ray |
Initializes a new instance of the RayStep struct. |
Direction |
Get the direction of the raycast step. This direction will be a normalized vector from the origin to the terminus. |
Length |
The length or magnitude of the raycast step. This is the distance from the origin to the terminus. |
Origin |
Get the origin position of the raycast step. |
Terminus |
Get the end position of the raycast step. |
Contains(Vector3) |
Test if the raycast step contain the specified point. |
Copy |
Copy the given ray structure to this raycast step, along with the specified length. |
Get |
Returns a direction along an array of RaySteps by distance |
Get |
Get a point along the raycast, at a specified distance from the origin. |
Get |
Returns a point along an array of RaySteps by distance |
Get |
Returns a RayStep along an array of RaySteps by distance |
Update |
Update the ray step with new origin and terminus points. |
Implicit(Ray |
Create a copy of the given raycast step. |
منتج | الإصدارات |
---|---|
MRTK3 Core Definitions | 3.0, 3.1, 3.2 |