WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Hand Function (https://forum.worldviz.com/showthread.php?t=4872)

rmcconnell11 11-11-2013 09:00 AM

Hand Function
 
Hi Guys,

I was wondering if someone could tell me why my objects seem to rotate about a point when grabbed?
I just can't seem to get a grasp on what exactly is going on with the grab hand function.

Thanks

This is what I have called, also attached the pdf

import viz
import viztracker
import World

# Set up tracking using the viztracker library
viztracker.DEFAULT_HANDS = True
viztracker.go()

#Set the physics step size
viz.phys.setStepSize(5)

# Pass in the list of hands to the physics engine for processing
import GrabHand
GrabHand.GrabHandList(World.grabObjects, handlist=viztracker.getHandList(), springs=True) # Reversing the argument order causes problems

Jeff 11-21-2013 05:20 PM

When springs is enabled the grabbed object is not rigidly attached to the hand. Perhaps this is causing the rotations you're noticing. You could try setting that to False. Without springs there maybe issues when the grabbed object collides with another objects in the scene.


All times are GMT -7. The time now is 10:39 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC