WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 06-26-2014, 12:22 AM
Shweta Shweta is offline
Join Date: Jun 2014
Posts: 9
Rotation and Translation


Is it possible to control the speed of motion during rotation or translation when we change the viewpoint using setPosition() or setEuler()?
Is there a method to implement the default behavior of using a mouse to move around through matrices (transformation matrix with 6 DOF)?
If yes, how do I control the speed there?

Thanks and Regards,
Reply With Quote
Old 06-30-2014, 11:45 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,467
You can scale the mouse movements using the <viz:mouse>.setScale command. Does that help answer your questions?
Reply With Quote
Old 07-01-2014, 05:07 AM
Shweta Shweta is offline
Join Date: Jun 2014
Posts: 9

Thank you for the reply.
I want to implement the navigation through the window using matrices(without using the mouse. But I also want to control the speed of navigation).
At this point I am using the following code snippet:
(for translation)
gotoRight = vizact.goto([2,1,-2],3,mode =viz.SPEED,rotate_mode=viz.BLEND_ROTATE,ori_mask=v iz.BODY_ORI)

(for rotation)
spinToYaw90 = vizact.spinTo(euler=[90,0,0], speed=5)

Now if I want to implement both translation and rotation simultaneously, can I do that?

I tried using setPosition() and setEuler(). However these two commands change the positions within the blink of an eye. Can I slow down the speed with which they impact the scene?

Thanks and Regards,
Shweta Shitole
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Introducing a rotation offset into a link EnvisMJ Vizard 1 11-13-2013 05:51 AM
Custom Joystick Rotation mhead10 Vizard 9 11-26-2012 12:06 PM

All times are GMT -7. The time now is 02:21 AM.

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