WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-13-2017, 08:02 AM
rdkirkden rdkirkden is offline
Member
 
Join Date: May 2017
Posts: 20
how to change transport rotation speed

Transport movement speed can be changed using the ‘transport.setMovementSpeed’ command. Is it also possible to change transport rotation speed?

In Vizconnect, there are various movement and rotation speed parameters, such as ‘rotationAcceleration’, ‘maxRotationSpeed’ and ‘rotationAutoBreakingDragCoef’, that get assigned to the transport object when it is created. Is there some way to access these properties from within a Vizard program and change their values?

Thanks,
Richard.
Reply With Quote
  #2  
Old 09-14-2017, 01:52 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
There are no built-in commands to change those values. However this is possible by modifying AccelerationTransport, the base class for transports that use acceleration. I've attached an example. The entire transportation folder from the vizard installation is copied into the example folder and methods for setting the rotation acceleration and max rotation speed have been added to the base transport.
Attached Files
File Type: zip transport example.zip (77.3 KB, 682 views)
Reply With Quote
  #3  
Old 09-14-2017, 03:36 AM
rdkirkden rdkirkden is offline
Member
 
Join Date: May 2017
Posts: 20
Very nice solution, thank you!!

Richard.
Reply With Quote
Reply

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
Varying rotation speed with spinTo mape2k Vizard 2 03-22-2013 07:48 AM
Custom Joystick Rotation mhead10 Vizard 9 11-26-2012 12:06 PM
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
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM


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


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