how to pick up the object, move and rotate using mouse
hello all,
im trying to develop an application using which i have to pick, drag, move and rotate the object using mouse...i have download the boxstacker and turbine demos for grabbing the objects...but they are executing when im launching the applications... could some one plz tell the code how this could be accomplished.. thankyou.. |
The following code creates a mousetracker object from the Viztracker module. The hand gets linked to this mousetracker. When you pick an object it gets linked to the hand.
Code:
import viz |
thanks jeff for ur reply...i tried with ur code..the mouse pointer is linked with the marker, but why it isnot able to move the ball?
Quote:
|
It works, you just have to line up the marker with the ball in the z coordinate. In order to do that you need to move the mouse wheel until the marker is right on top of the ball.
|
its working....thankyou jefff..
|
jeff....how rotation can be applied for the ball using the mouse.....i want to rotate the object...is it possible?
|
All times are GMT -7. The time now is 02:19 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC