WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   how to change transport rotation speed (https://forum.worldviz.com/showthread.php?t=6057)

rdkirkden 09-13-2017 08:02 AM

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.

Jeff 09-14-2017 01:52 AM

1 Attachment(s)
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.

rdkirkden 09-14-2017 03:36 AM

Very nice solution, thank you!!

Richard.


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

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