HandPosing
A tool for quickly authoring hand poses to objects in VR using hand-tracking
|
Especifies a surface around a Snappable in which a hand can snap to. SnapSurfaces are an optional property of SnapPoints and they actually define all the valid points for the Grip of the hand to snap to the object with the same HandPose. More...
Public Member Functions | |
virtual Pose | MirrorPose (Pose pose) |
Method for mirroring a Pose around the surface. Different surfaces will prefer mirroring along different axis. More... | |
abstract HandPose | InvertedPose (HandPose pose) |
STUB: Inverts a hand pose to an upside-down position. More... | |
abstract Vector3 | NearestPointInSurface (Vector3 targetPosition) |
The nearest position at the surface from a given position. More... | |
abstract Pose | MinimalRotationPoseAtSurface (Pose userPose, Pose snapPose) |
Calculates a valid pose at the surface with the most similar rotation possible to the user's hand More... | |
abstract Pose | MinimalTranslationPoseAtSurface (Pose userPose, Pose snapPose) |
Calculates a valid pose at the surface with the most similar position possible to the user's hand More... | |
Public Attributes | |
Transform | relativeTo |
Object to which the surface refers to. More... | |
Properties | |
virtual SnapSurfaceData | Data [get, set] |
Getter for the data-only version of this surface. Used so it can be stored when created at Play-Mode. More... | |
Transform | GripPoint [get] |
Valid point at which the hand can snap, typically the SnapPoint position itself. More... | |
Especifies a surface around a Snappable in which a hand can snap to. SnapSurfaces are an optional property of SnapPoints and they actually define all the valid points for the Grip of the hand to snap to the object with the same HandPose.
Snap Surfaces typically come with Inspector and Handles to modify their properties, this is the recommended way to edit the values as editting the numbers directly can be very error-prone.
STUB: Inverts a hand pose to an upside-down position.
pose | The hand pose to be inverted |
Implemented in HandPosing.SnapSurfaces.SphereSurface, HandPosing.SnapSurfaces.CylinderSurface, and HandPosing.SnapSurfaces.BoxSurface.
|
pure virtual |
Calculates a valid pose at the surface with the most similar rotation possible to the user's hand
userPose | The user's hand pose |
snapPose | The pose for the snap point |
Implemented in HandPosing.SnapSurfaces.SphereSurface, HandPosing.SnapSurfaces.CylinderSurface, and HandPosing.SnapSurfaces.BoxSurface.
|
pure virtual |
Calculates a valid pose at the surface with the most similar position possible to the user's hand
userPose | The user's hand pose |
snapPose | The pose for the snap point |
Implemented in HandPosing.SnapSurfaces.SphereSurface, HandPosing.SnapSurfaces.CylinderSurface, and HandPosing.SnapSurfaces.BoxSurface.
|
virtual |
Method for mirroring a Pose around the surface. Different surfaces will prefer mirroring along different axis.
pose | The Pose to be mirrored. |
Reimplemented in HandPosing.SnapSurfaces.SphereSurface, HandPosing.SnapSurfaces.CylinderSurface, and HandPosing.SnapSurfaces.BoxSurface.
|
pure virtual |
The nearest position at the surface from a given position.
targetPosition | The position to measure from at world coordinates. |
Implemented in HandPosing.SnapSurfaces.SphereSurface, HandPosing.SnapSurfaces.CylinderSurface, and HandPosing.SnapSurfaces.BoxSurface.
Transform HandPosing.SnapSurfaces.SnapSurface.relativeTo |
Object to which the surface refers to.
|
getset |
Getter for the data-only version of this surface. Used so it can be stored when created at Play-Mode.
|
getprotected |
Valid point at which the hand can snap, typically the SnapPoint position itself.