#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
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) vizact.onkeydown(' ', viz.MainView.runAction, spinAction ) |
Tags |
rotate, viewpoint |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rotate Viewpoint 360 Around Point/Object | hotshotiguana | Vizard | 3 | 01-25-2012 06:36 PM |
rotate around moving axis | moneim230 | Vizard | 1 | 07-14-2010 10:04 AM |
Moving main viewpoint when linked to PPT | v-clizzin | Precision Position Tracker (PPT) | 1 | 04-20-2010 05:09 PM |
viewpoint rotate | bionic1 | Vizard | 1 | 01-27-2010 10:32 AM |
moving viewpoint vs. translating Head_pos | bailenson | Vizard | 5 | 02-01-2005 02:51 PM |