Rotate viewpoint while moving
So I'm trying to make a train simulation in which the viewpoint moves forward and rotates by itself once it is close to an object.
I am able to make it turn while moving forward when I'm pressing down a key however, I can not figure out how to make it rotate smoothly without using a key. When I try using the setEuler without pressing a key, it turns however, it is not smooth at all. Any ideas on how to make it turn smoothly on its own? |
Create a spin action with the vizact.spinTo command and apply that to the viewpoint:
Code:
spinAction = vizact.spinTo(euler=[180,0,0], speed=30) |
All times are GMT -7. The time now is 11:59 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC