Trying to constrain/attach a Scenegraph node to a tracked VR hand using vrConstraintService.createParentConstraint(), but it doesn't seem to want to take the VR hand object as an argument. Suppose that function only works with Scenegraph nodes.
Purpose is to be able to move an object with a tracked hand.
Is there any way of constraining a Scenegraph node to the transform of a tracked VR hand?
Solved! Go to Solution.
Solved by __daniel.lincoln__. Go to Solution.
Hello,
There is an example script in ~examples/vr/attachToController.py that also works for Tracked Hands.
Regards,
Dan
Thanks, works now. 🙂
Another problem though: I only want the Vset script constraining the target to the constrained object to be active as long as I "touch" the touch sensor that triggers the Vset. Tried figuring out how to check if the sensor is active but can't really understand how to use the vrTouchSensor module. Maybe that's not the way to do it. Isn't there just a setting somewhere allowing for Touch Sensors to deactivate once you end overlap? 🙂
Can't find what you're looking for? Ask the community or share your knowledge.