WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   "Rotation Grabber"? (https://forum.worldviz.com/showthread.php?t=5565)

blindberg 12-01-2015 06:04 PM

"Rotation Grabber"?
 
I'm trying to grab a box and rotate it back and forth around the y-axis as I move the mouse, instead of translate it.

Is there an easy way to do this?

Jeff 12-04-2015 10:01 AM

Do you want to be able to translate/rotate the object that grabs (e.g. hand model) and then limit movements to rotations once the grab event is triggered? Do you have a tracking system or is this a desktop simulation?

blindberg 12-05-2015 09:13 AM

I'm looking to move a hand to a spot on an object and grab it, then rotate the object around a designated axis as i drag the hand around with the mouse (not necessarily rotating the hand, but definitely the object)

Trying to grab, say, a doorknob and have the door open and close a dynamic amount based on the mouse movement

Jeff 12-14-2015 07:54 AM

In this case you could use the vizproximity library to detect the hand has touched or is near the door. Then check to see how much the mouse has moved and update the yaw value of the door each frame.


All times are GMT -7. The time now is 08:36 AM.

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