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

BezierGrabSurface Class

Defines a series of points that specify paths along with the snapping pose is valid.
Oculus::Interaction::Grab::GrabSurfaces::BezierGrabSurface extends MonoBehaviour.
Oculus::Interaction::Grab::GrabSurfaces::BezierGrabSurface extends Oculus.Interaction.Grab.GrabSurfaces.IGrabSurface.

Overview

Properties

Object Data

void
Reset ( )
void
Start ( )

Public Member Functions

CalculateBestPoseAtSurface
( in Pose targetPose,
out Pose bestPose,
in PoseMeasureParameters scoringModifier,
Transform relativeTo )
Finds the Pose at the surface that is the closest to the given pose.
CalculateBestPoseAtSurface
( in Pose targetPose,
in Pose offset,
out Pose bestPose,
in PoseMeasureParameters scoringModifier,
Transform relativeTo )
Finds the Pose at the surface that is the closest to the given pose.
bool
CalculateBestPoseAtSurface
( Ray targetRay,
out Pose bestPose,
Transform relativeTo )
Finds the Pose at the surface that is the closest to the given ray.
CreateDuplicatedSurface
( GameObject gameObject )
Creates a new IGrabSurface under the selected gameobject with the same data as this one.
CreateMirroredSurface
( GameObject gameObject )
Creates a new IGrabSurface under the selected gameobject that is a mirror version of the current.
Pose
MirrorPose
( in Pose gripPose,
Transform relativeTo )
Method for mirroring a Pose around the surface.
void
InjectAllBezierSurface
( List< BezierControlPoint > controlPoints,
Transform relativeTo )
void
InjectControlPoints
( List< BezierControlPoint > controlPoints )
void
InjectRelativeTo
( Transform relativeTo )

Static Public Member Functions

static Vector3
EvaluateBezier
( Vector3 start,
Vector3 middle,
Vector3 end,
float t )

Details

Detailed Description

The points can be connected to the previous and/or next one, even looping, or completely isolated. When two or more consecutive points are connected, they define a continuous path. The Tangent can be used to specify the curve between two points. It is also possible to connect the last point with the first one to create a closed loop. The rotation at a point in the path is specified by interpolating the rotation of the starting and ending point of the current segment. When a point is not connected to any other point, it is considered as a single point in space.

Properties

List<BezierControlPoint> Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.ControlPoints
No description available.

Object Data

virtual void Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.Reset ( )
No description available.
virtual void Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.Start ( )
No description available.

Member Functions

GrabPoseScore Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.CalculateBestPoseAtSurface
( in Pose targetPose,
out Pose bestPose,
in PoseMeasureParameters scoringModifier,
Transform relativeTo )
Finds the Pose at the surface that is the closest to the given pose.
Parameters
targetPose
The root pose to find the nearest to.
bestPose
The best found pose at the surface.<
scoringModifier
Weight used to decide which target pose to select
relativeTo
Reference transform to measure the poses against
Returns
The score indicating how good the found pose was, -1 for invalid result.
GrabPoseScore Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.CalculateBestPoseAtSurface
( in Pose targetPose,
in Pose offset,
out Pose bestPose,
in PoseMeasureParameters scoringModifier,
Transform relativeTo )
Finds the Pose at the surface that is the closest to the given pose.
Parameters
targetPose
The root pose to find the nearest to.
offset
The offset from the root, for accurate scoring
bestPose
The best found pose at the surface.<
scoringModifier
Weight used to decide which target pose to select
relativeTo
Reference transform to measure the poses against
Returns
The score indicating how good the found pose was, -1 for invalid result.
bool Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.CalculateBestPoseAtSurface
( Ray targetRay,
out Pose bestPose,
Transform relativeTo )
Finds the Pose at the surface that is the closest to the given ray.
Parameters
targetRay
Ray searching for the nearest snap pose
bestPose
The best found pose at the surface.
relativeTo
Reference transform to measure the poses against
Returns
True if the pose was found
IGrabSurface Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.CreateDuplicatedSurface
( GameObject gameObject )
Creates a new IGrabSurface under the selected gameobject with the same data as this one.
Parameters
gameObject
The gameobject in which to place the new IGrabSurface.
Returns
A clone of this IGrabSurface.
IGrabSurface Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.CreateMirroredSurface
( GameObject gameObject )
Creates a new IGrabSurface under the selected gameobject that is a mirror version of the current.
Parameters
gameObject
The gameobject in which to place the new IGrabSurface.
Returns
A mirror of this IGrabSurface.
Pose Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.MirrorPose
( in Pose gripPose,
Transform relativeTo )
Method for mirroring a Pose around the surface.
Different surfaces will prefer mirroring along different axis.
Parameters
gripPose
The Pose to be mirrored.
relativeTo
Reference transform to mirror the pose around
Returns
A new pose mirrored at this surface.
void Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.InjectAllBezierSurface
( List< BezierControlPoint > controlPoints,
Transform relativeTo )
No description available.
void Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.InjectControlPoints
( List< BezierControlPoint > controlPoints )
No description available.
void Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.InjectRelativeTo
( Transform relativeTo )
No description available.

Static Member Functions

static Vector3 Oculus.Interaction.Grab.GrabSurfaces.BezierGrabSurface.EvaluateBezier
( Vector3 start,
Vector3 middle,
Vector3 end,
float t )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon