Module vrInteraction
[frames] | no frames]

Module vrInteraction

Classes
vrInteraction
Base class for all interactions.
Functions
 
callAllPickingPressed(node, pos, normal, uv)
Call picking pressed for all devices
 
callAllPickingPressed(node, pos, normal, uv, button)
Call picking pressed for all devices
 
callAllPickingReleased(node, pos, normal, uv)
Call picking released for all devices
 
callAllPickingReleased(node, pos, normal, uv, button)
Call picking released for all devices
 
callAllPickingMoved(node, pos, normal, uv)
Call picking moved for all devices
 
callAllPickingMoved(node, pos, normal, uv, button)
Call picking moved for all devices
bool
getUseBoundingboxesForInteractionInVR()
Get the current state of boundingboxes for VR interactions.
 
setNodeInteractableInVR(node, state)
Enable / disable interaction with a scene node in VR.
 
setUseBoundingboxesForInteractionInVR(state)
Enable / disable boundingboxes for VR interactions.
Function Details

callAllPickingPressed(node, pos, normal, uv)

 

Call picking pressed for all devices

Parameters:
  • node (vrNodePtr) - The node.
  • pos (Pnt3f) - The position.
  • normal (Vec3f) - The normal.
  • uv (Pnt2f) - The uv texture coordinates.

callAllPickingPressed(node, pos, normal, uv, button)

 

Call picking pressed for all devices

Parameters:
  • node (vrNodePtr) - The node.
  • pos (Pnt3f) - The position.
  • normal (Vec3f) - The normal.
  • uv (Pnt2f) - The uv texture coordinates.
  • button (int) - button id.

callAllPickingReleased(node, pos, normal, uv)

 

Call picking released for all devices

Parameters:
  • node (vrNodePtr) - The node.
  • pos (Pnt3f) - The position.
  • normal (Vec3f) - The normal.
  • uv (Pnt2f) - The uv texture coordinates.

callAllPickingReleased(node, pos, normal, uv, button)

 

Call picking released for all devices

Parameters:
  • node (vrNodePtr) - The node.
  • pos (Pnt3f) - The position.
  • normal (Vec3f) - The normal.
  • uv (Pnt2f) - The uv texture coordinates.
  • button (int) - button id.

callAllPickingMoved(node, pos, normal, uv)

 

Call picking moved for all devices

Parameters:
  • node (vrNodePtr) - The node.
  • pos (Pnt3f) - The position.
  • normal (Vec3f) - The normal.
  • uv (Pnt2f) - The uv texture coordinates.

callAllPickingMoved(node, pos, normal, uv, button)

 

Call picking moved for all devices

Parameters:
  • node (vrNodePtr) - The node.
  • pos (Pnt3f) - The position.
  • normal (Vec3f) - The normal.
  • uv (Pnt2f) - The uv texture coordinates.
  • button (int) - button id.

getUseBoundingboxesForInteractionInVR()

 

Get the current state of boundingboxes for VR interactions.

Query if boundingboxes are used as collision objects for VR interactions.

Returns: bool
True if boundingboxes are used, false if convex hulls are used.

setNodeInteractableInVR(node, state)

 

Enable / disable interaction with a scene node in VR.

When using the hand interaction in VR mode, Web Engines will receive events and Touch sensors will be triggered when the hand collides with the convex hull of the geometry. The geometry must have a volume (no flat/planar geometry). The node itself and its parent nodes may be translated and rotated, any child geometry may not be transformed.

Interactable nodes must not have a parent-child relationship in the scene tree.

Parameters:
  • node (vrNodePtr) - The scene node.
  • state (bool) - Enable or disable interaction

setUseBoundingboxesForInteractionInVR(state)

 

Enable / disable boundingboxes for VR interactions.

Use boundingboxes as collision objects for VR interactions instead of convex hulls.

Parameters:
  • state - Enable or disable boundingboxes