WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 05-21-2018, 08:48 PM
groot groot is offline
Registered User
Join Date: May 2018
Posts: 1
Rotation of MainView by a certain angle without use of on.keydown

I have tried vizact.spin and vizact.spinTo for this, but they only move to fixed angles relative to the original viewpoint.
eg. below is the least buggy code:
HTML Code:
turnRight = vizact.spinTo(euler=[90,0,0], speed=50)
turnLeft = vizact.spinTo(euler=[-90,0,0], speed=50)
	if "left" in command:
	elif "right" in command:
However, if I am initially facing North, "left" would turn the MainView to West. After that, the command "right" would turn MainView to the East, instead of what we want, North.

Could someone advise me on what to do? Thanks!
Reply With Quote
Old 05-29-2018, 11:13 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
I'll check with a developer about this and get back to you.
Reply With Quote
Old 05-30-2018, 03:20 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
Are you setting this up for a system with position tracking?
Reply With Quote

rotate, spin

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
Problems with linking Sensor to MainView escmo Vizard 2 06-25-2013 01:15 AM
Mainview can't go back to original point jacky Vizard 1 06-04-2013 04:22 AM
Custom Joystick Rotation mhead10 Vizard 9 11-26-2012 12:06 PM
Unable to perform 360 rotation using vizact.spinto vijaykiran Vizard 2 09-29-2009 08:39 AM
calculating angle differences tavaksai Vizard 4 08-23-2004 10:04 AM

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

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