View Single Post
  #1  
Old 12-07-2018, 04:09 AM
qwartz qwartz is offline
Registered User
 
Join Date: Dec 2018
Posts: 1
Question Detect Hands of Avatar (set them as target)

Hi

I use the Oculus Rift with a vizconnect configuration where I've added the "Mark" avatar's hands. I want to touch objects and when they are touched they should change state (e.g. color).

My objects have sensors and I can achieve the desired change in state when the viewpoint is near the objects. Now I want to extend the target from the viewpoint to the hands of the avatar (so that when the hands are near the objects, they - the objects - change state).

I tried something like that:
Code:
viewTransform = vizconnect.getDisplay().getNode3d()
#viewTransform = vizconnect.getAvatar#.getNode3d()
target = vizproximity.Target(viewTransform)
manager.addTarget(target)
but it doesn't work. Anything else to try?
Reply With Quote