View Single Post
  #1  
Old 12-01-2015, 03:26 PM
szkuls szkuls is offline
Member
 
Join Date: Dec 2015
Posts: 2
Vizconnect grabber grab area

Hello,

I am able to get the grabber tool working with vizconnect but the hotspot for grabbing an object seems to be the same size at the center or pivot of the object no matter how large or small the object is. For example here is a code snippet with two cubes. The one on the left is easily highlighted and grabbed where as the larger cube on the right can still be grabbed but is very difficult to see where the hand is or if you are close to the center of the cube to make the grab.

Code:
import viz
import vizconnect
import vizshape

vizconnect.go ('vizconnect_desktop.py')

scene = viz.addChild ('piazza.osgb')

smallBox = vizshape.addBox (size = (1,1,1))
smallBox.setPosition ([0, 1, 0])
bigBox = vizshape.addBox (size = (5,5,5))
bigBox.setPosition  ([6, 3, 0])

tool = vizconnect.getRawTool ('grabber')
tool.setItems ([smallBox, bigBox])
Is there a way to adjust the hotspot or collision/intersection area of the items that are set to grabbable? Ideally, I would like to have the bounding box be the intersection area for the the hand to grab.

Thanks!
Reply With Quote