C# Class VRHand

Inheritance: Grabber
Afficher le fichier Open project: adamhleslie/MorningRitual-GlobalGameJam2016 Class Usage Examples

Méthodes publiques

Свойство Type Description
controller SteamVR_Controller.Device,
createRenderModel bool
hoverLayerMask LayerMask
hoverSphereRadius float
hoverSphereTransform Transform
hoverUpdateInterval float
noSteamVRFallbackCamera Camera
otherHand VRHand,
showDebugText bool
showRenderModel bool
spewDebugText bool
startingHandType HandType

Méthodes publiques

Méthode Description
AttachObject ( GameObject objectToAttach, AttachmentFlags flags = defaultAttachmentFlags, string attachmentPoint = "" ) : void

Attach a GameObject to this GameObject.

Awake ( ) : void
DestroyAttachedObjects ( ) : void
DetachObject ( GameObject objectToDetach, bool restoreOriginalParent = true ) : void

Detach this GameObject from the attached object stack of this VRHand.

GetAttachmentTransform ( string attachmentPoint = "" ) : Transform
GetStandardInteractionButton ( ) : bool

Is the standard interaction button being pressed? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.

GetStandardInteractionButtonDown ( ) : bool

Was the standard interaction button just pressed? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.

GetStandardInteractionButtonUp ( ) : bool

Was the standard interaction button just released? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.

GetTrackedObjectAngularVelocity ( ) : Vector3

Get the world angular velocity of the VR Hand. Note: controller velocity value only updates on controller events (Button but and down) so good for throwing

GetTrackedObjectVelocity ( ) : Vector3

Get the world velocity of the VR Hand. Note: controller velocity value only updates on controller events (Button but and down) so good for throwing

GuessCurrentHandType ( ) : HandType

Guess the type of this VRHand.

HoverLock ( VRInteractable interactable ) : void

Continue to hover over this object indefinitely, whether or not the VRHand moves out of its interaction trigger volume.

HoverUnlock ( VRInteractable interactable ) : void

Stop hovering over this object indefinitely.

OnDisable ( ) : void
OnDrawGizmos ( ) : void
OnEnable ( ) : void
Update ( ) : void
UpdateDebugText ( ) : void
UpdateHovering ( ) : void
UpdateNoSteamVRFallback ( ) : void

Private Methods

Méthode Description
CleanUpAttachedObjectStack ( ) : void
InitController ( int index ) : void
Start ( ) : IEnumerator
VRHandDebugLog ( string msg ) : void

Method Details

AttachObject() public méthode

Attach a GameObject to this GameObject.
public AttachObject ( GameObject objectToAttach, AttachmentFlags flags = defaultAttachmentFlags, string attachmentPoint = "" ) : void
objectToAttach GameObject The GameObject to attach.
flags AttachmentFlags The flags to use for attaching the object.
attachmentPoint string Name of the GameObject in the hierarchy of this VRHand which should act as the attachment point for this GameObject.
Résultat void

Awake() public méthode

public Awake ( ) : void
Résultat void

DestroyAttachedObjects() public méthode

public DestroyAttachedObjects ( ) : void
Résultat void

DetachObject() public méthode

Detach this GameObject from the attached object stack of this VRHand.
public DetachObject ( GameObject objectToDetach, bool restoreOriginalParent = true ) : void
objectToDetach GameObject The GameObject to detach from this VRHand
restoreOriginalParent bool
Résultat void

GetAttachmentTransform() public méthode

public GetAttachmentTransform ( string attachmentPoint = "" ) : Transform
attachmentPoint string
Résultat Transform

GetStandardInteractionButton() public méthode

Is the standard interaction button being pressed? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.
public GetStandardInteractionButton ( ) : bool
Résultat bool

GetStandardInteractionButtonDown() public méthode

Was the standard interaction button just pressed? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.
public GetStandardInteractionButtonDown ( ) : bool
Résultat bool

GetStandardInteractionButtonUp() public méthode

Was the standard interaction button just released? In VR, this is a trigger press. In 2D fallback, this is a mouse left-click.
public GetStandardInteractionButtonUp ( ) : bool
Résultat bool

GetTrackedObjectAngularVelocity() public méthode

Get the world angular velocity of the VR Hand. Note: controller velocity value only updates on controller events (Button but and down) so good for throwing
public GetTrackedObjectAngularVelocity ( ) : Vector3
Résultat Vector3

GetTrackedObjectVelocity() public méthode

Get the world velocity of the VR Hand. Note: controller velocity value only updates on controller events (Button but and down) so good for throwing
public GetTrackedObjectVelocity ( ) : Vector3
Résultat Vector3

GuessCurrentHandType() public méthode

Guess the type of this VRHand.
public GuessCurrentHandType ( ) : HandType
Résultat HandType

HoverLock() public méthode

Continue to hover over this object indefinitely, whether or not the VRHand moves out of its interaction trigger volume.
public HoverLock ( VRInteractable interactable ) : void
interactable VRInteractable The VRInteractable to hover over indefinitely.
Résultat void

HoverUnlock() public méthode

Stop hovering over this object indefinitely.
public HoverUnlock ( VRInteractable interactable ) : void
interactable VRInteractable The hover-locked VRInteractable to stop hovering over indefinitely.
Résultat void

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UpdateDebugText() public méthode

public UpdateDebugText ( ) : void
Résultat void

UpdateHovering() public méthode

public UpdateHovering ( ) : void
Résultat void

UpdateNoSteamVRFallback() public méthode

public UpdateNoSteamVRFallback ( ) : void
Résultat void

Property Details

controller public_oe property

public SteamVR_Controller.Device, controller
Résultat SteamVR_Controller.Device,

createRenderModel public_oe property

public bool createRenderModel
Résultat bool

hoverLayerMask public_oe property

public LayerMask hoverLayerMask
Résultat LayerMask

hoverSphereRadius public_oe property

public float hoverSphereRadius
Résultat float

hoverSphereTransform public_oe property

public Transform hoverSphereTransform
Résultat Transform

hoverUpdateInterval public_oe property

public float hoverUpdateInterval
Résultat float

noSteamVRFallbackCamera public_oe property

public Camera noSteamVRFallbackCamera
Résultat Camera

otherHand public_oe property

public VRHand, otherHand
Résultat VRHand,

showDebugText public_oe property

public bool showDebugText
Résultat bool

showRenderModel public_oe property

public bool showRenderModel
Résultat bool

spewDebugText public_oe property

public bool spewDebugText
Résultat bool

startingHandType public_oe property

public HandType startingHandType
Résultat HandType