WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 07-08-2013, 10:04 AM
mape2k mape2k is offline
Join Date: Mar 2013
Posts: 60
Inconsisten movement speed of the viewport

Hello all,

we are designing experiments in Vizard that include both automated movement as well as manual movement (joystick, keyboard) of the viewport through an environment.
Here, we have come across an interesting problem: Whenever we have manual movement, the movement speed is inconsistent. This means it is a) dependent on the loaded environment and b) dependent on the desired speed that is set.

a) More complex scenarios produce higher deviations in movement speed (but only for manual movement! The automated movement works flawlessly)
b) Higher speeds produce higher deviations (at 10m/s it is about 0.5m/s slower, at 30m/s about 1.5m/s slower)

We are realising the joystick and/or keyboard movement with the following code:

if math.fabs(jy) > joyDeadzone and -zoneX < jx < zoneX: 	# translation
	if jy > 0:	# backward
	if jy < 0:	# forward
elif math.fabs(jx) > joyDeadzone and -zoneY < jy < zoneY:	# rotation
	if  jx < 0: 	# left
		if  jx > 0: 	# right
Could it be that the function viz.elapsed() is causing the deviation in movement speed?

All the best and thank you!
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
Temporal delay on movement westbyb Vizard 5 05-23-2013 06:06 PM
Varying rotation speed with spinTo mape2k Vizard 2 03-22-2013 07:48 AM
Object + InteriaCube + Viewport problem Gekitatsu Vizard 1 02-22-2012 10:55 AM
random speed and associated coding Saz Vizard 1 05-20-2010 04:03 AM
Calculating Speed with sensor durf Vizard 1 03-13-2009 10:25 AM

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

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