CalculateBestPoseAtSurface
(
targetPose
, bestPose
, scoringModifier
, relativeTo
)
|
Finds the Pose at the surface that is the closest to the given pose.
Signature
GrabPoseScore Oculus.Interaction.Grab.GrabSurfaces.IGrabSurface.CalculateBestPoseAtSurface(in Pose targetPose, out Pose bestPose, in PoseMeasureParameters scoringModifier, Transform relativeTo) Parameters targetPose: in Pose
The root pose to find the nearest to.
bestPose: out Pose
The best found pose at the surface.<
relativeTo: Transform
Reference transform to measure the poses against
|
CalculateBestPoseAtSurface
(
targetPose
, offset
, bestPose
, scoringModifier
, relativeTo
)
|
Finds the Pose at the surface that is the closest to the given pose.
Signature
GrabPoseScore Oculus.Interaction.Grab.GrabSurfaces.IGrabSurface.CalculateBestPoseAtSurface(in Pose targetPose, in Pose offset, out Pose bestPose, in PoseMeasureParameters scoringModifier, Transform relativeTo) Parameters targetPose: in Pose
The root pose to find the nearest to.
offset: in Pose
The offset from the root, for accurate scoring
bestPose: out Pose
The best found pose at the surface.<
relativeTo: Transform
Reference transform to measure the poses against
|
CalculateBestPoseAtSurface
(
targetRay
, bestPose
, relativeTo
)
|
Finds the Pose at the surface that is the closest to the given ray.
Signature
bool Oculus.Interaction.Grab.GrabSurfaces.IGrabSurface.CalculateBestPoseAtSurface(Ray targetRay, out Pose bestPose, Transform relativeTo) Parameters targetRay: Ray
Ray searching for the nearest snap pose
bestPose: out Pose
The best found pose at the surface.
relativeTo: Transform
Reference transform to measure the poses against
Returns bool
True if the pose was found
|
CreateDuplicatedSurface
(
gameObject
)
|
Creates a new IGrabSurface under the selected gameobject with the same data as this one.
Signature
IGrabSurface Oculus.Interaction.Grab.GrabSurfaces.IGrabSurface.CreateDuplicatedSurface(GameObject gameObject) Parameters gameObject: GameObject
The gameobject in which to place the new IGrabSurface.
|
CreateMirroredSurface
(
gameObject
)
|
Creates a new IGrabSurface under the selected gameobject that is a mirror version of the current.
Signature
IGrabSurface Oculus.Interaction.Grab.GrabSurfaces.IGrabSurface.CreateMirroredSurface(GameObject gameObject) Parameters gameObject: GameObject
The gameobject in which to place the new IGrabSurface.
|
MirrorPose
(
gripPose
, relativeTo
)
|
Method for mirroring a Pose around the surface.
Different surfaces will prefer mirroring along different axis.
Signature
Pose Oculus.Interaction.Grab.GrabSurfaces.IGrabSurface.MirrorPose(in Pose gripPose, Transform relativeTo) Parameters gripPose: in Pose
The Pose to be mirrored.
relativeTo: Transform
Reference transform to mirror the pose around
Returns Pose
A new pose mirrored at this surface.
|