_started
: bool |
Signature
bool Oculus.Interaction.Surfaces.CylinderSurface._started |
Cylinder
: Cylinder |
Signature
Cylinder Oculus.Interaction.Surfaces.CylinderSurface.Cylinder |
IsValid
: bool |
Signature
bool Oculus.Interaction.Surfaces.CylinderSurface.IsValid |
Radius
: float |
Signature
float Oculus.Interaction.Surfaces.CylinderSurface.Radius |
Transform
: Transform |
Signature
Transform Oculus.Interaction.Surfaces.CylinderSurface.Transform |
Bounds
: Bounds
[Get] |
Signature
Bounds Oculus.Interaction.Surfaces.CylinderSurface.Bounds |
Facing
: NormalFacing
[Get][Set] |
Signature
NormalFacing Oculus.Interaction.Surfaces.CylinderSurface.Facing |
Height
: float
[Get][Set] |
Signature
float Oculus.Interaction.Surfaces.CylinderSurface.Height |
Start
()
|
Signature
virtual void Oculus.Interaction.Surfaces.CylinderSurface.Start() Returns void |
ClosestSurfacePoint
(
point
, hit
, maxDistance
)
|
Find the nearest point to the surface.
The arguments and outputs of this operation are in world space.
Signature
bool Oculus.Interaction.Surfaces.CylinderSurface.ClosestSurfacePoint(in Vector3 point, out SurfaceHit hit, float maxDistance) Parameters point: in Vector3Â
The point, in world space, for which the nearest point on the surface must be found
hit: out SurfaceHitÂ
The returned hit data in world space if a nearest point could be found, default otherwise
maxDistance: floatÂ
If greater than zero, maximum distance of check; if zero distance is unconstrained
Returns boolÂ
True if the racyast hit the surface, false otherwise
|
InjectAllCylinderSurface
(
facing
, cylinder
, height
)
|
Signature
void Oculus.Interaction.Surfaces.CylinderSurface.InjectAllCylinderSurface(NormalFacing facing, Cylinder cylinder, float height) Parameters Returns void |
InjectCylinder
(
cylinder
)
|
Signature
void Oculus.Interaction.Surfaces.CylinderSurface.InjectCylinder(Cylinder cylinder) Parameters cylinder: CylinderReturns void |
InjectHeight
(
height
)
|
Signature
void Oculus.Interaction.Surfaces.CylinderSurface.InjectHeight(float height) Parameters height: floatReturns void |
InjectNormalFacing
(
facing
)
|
Signature
void Oculus.Interaction.Surfaces.CylinderSurface.InjectNormalFacing(NormalFacing facing) Parameters facing: NormalFacingReturns void |
Raycast
(
ray
, hit
, maxDistance
)
|
Raycast to the surface with an optional maximum distance value.
The arguments and outputs of this operation are in world space.
Signature
bool Oculus.Interaction.Surfaces.CylinderSurface.Raycast(in Ray ray, out SurfaceHit hit, float maxDistance) Parameters ray: in RayÂ
The ray to cast, with position and direction both defined in world space
hit: out SurfaceHitÂ
The returned hit data in world space if the raycast hit the surface, default otherwise
maxDistance: floatÂ
If greater than zero, maximum distance of raycast; if zero, distance is unconstrained
Returns boolÂ
True if the raycast hit the surface, false otherwise
|
| Member | Description |
|---|---|
Any |
Raycast hit will register on the outside or inside of the cylinder, whichever is hit first.
|
In |
Raycasts will pass through the outside of the cylinder and hit the inside wall.
|
Out |
Raycast against the outside wall of the cylinder.
In this mode, raycasts with an origin inside the cylinder will always fail.
|