API reference
API reference
Select your platform
No SDKs available
No versions available

IPolyline Interface

Defines a sequence of connected points in 3D space that form a polyline shape.
This interface is commonly used for defining paths, boundaries, or trajectories in spatial interactions and surface definitions.
See Oculus.Interaction.TransformsPolyline and Oculus.Interaction.Locomotion.TeleportArcGravity for example implementations.

Properties

PointsCount : int
[Get]
Max number of points that define the IPolyline.
Signature
int Oculus.Interaction.IPolyline.PointsCount

Methods

PointAtIndex ( index )
Calculates the position N vertex of the IPolyline.
Signature
Vector3 Oculus.Interaction.IPolyline.PointAtIndex(int index)
Parameters
index: int  The N vertex of the polyline been queried.
Returns
Vector3  The position of the polyline at the index-th point