This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
GvrBasePointer.PointerRay
Represents a ray segment for a series of intersecting rays.
Summary
This is useful for Hybrid raycast mode, which uses two sequential rays.
Public attributes
|
distance
|
float
Distance that this ray extends to.
|
distanceFromStart
|
float
The distance along the pointer from the origin of the first ray to this ray.
|
ray
|
Ray
The ray for this segment of the pointer.
|
Public attributes
distance
float GvrBasePointer::PointerRay::distance
Distance that this ray extends to.
distanceFromStart
float GvrBasePointer::PointerRay::distanceFromStart
The distance along the pointer from the origin of the first ray to this ray.
ray
Ray GvrBasePointer::PointerRay::ray
The ray for this segment of the pointer.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003eGvrBasePointer.PointerRay\u003c/code\u003e represents a segment of a ray, particularly useful for Hybrid raycast mode which utilizes two sequential rays.\u003c/p\u003e\n"],["\u003cp\u003eIt includes attributes like \u003ccode\u003edistance\u003c/code\u003e, \u003ccode\u003edistanceFromStart\u003c/code\u003e, and \u003ccode\u003eray\u003c/code\u003e to define the ray segment's properties within the overall pointer's trajectory.\u003c/p\u003e\n"],["\u003cp\u003eThese attributes provide information about the ray segment's length, its position relative to the starting point of the pointer, and the actual ray itself for intersection calculations.\u003c/p\u003e\n"]]],["`PointerRay` represents a ray segment used in hybrid raycast mode, which employs two sequential rays. It holds information about each ray segment, including its `distance` (how far it extends), `distanceFromStart` (position relative to the first ray's origin), and the `ray` itself. These attributes define the characteristics of a specific ray segment within a series of intersecting rays.\n"],null,["# GvrBasePointer.PointerRay Struct Reference\n\nGvrBasePointer.PointerRay\n=========================\n\nRepresents a ray segment for a series of intersecting rays.\n\nSummary\n-------\n\nThis is useful for Hybrid raycast mode, which uses two sequential rays.\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| [distance](#structGvrBasePointer_1_1PointerRay_1af56a58b8b9f5b098208ac639f7cc41d9) | `float` Distance that this ray extends to. |\n| [distanceFromStart](#structGvrBasePointer_1_1PointerRay_1a9b5e794d6e8057aea169da5452fbb9c5) | `float` The distance along the pointer from the origin of the first ray to this ray. |\n| [ray](#structGvrBasePointer_1_1PointerRay_1a5a29e463a879b87eda142abe5b83b7a9) | `Ray` The ray for this segment of the pointer. |\n\nPublic attributes\n-----------------\n\n### distance\n\n```c#\nfloat GvrBasePointer::PointerRay::distance\n``` \nDistance that this ray extends to. \n\n### distanceFromStart\n\n```c#\nfloat GvrBasePointer::PointerRay::distanceFromStart\n``` \nThe distance along the pointer from the origin of the first ray to this ray. \n\n### ray\n\n```c#\nRay GvrBasePointer::PointerRay::ray\n``` \nThe ray for this segment of the pointer."]]