#1
|
|||
|
|||
setEuler argument/documentation confusion
Hello,
The documentation for the setEuler function (and some other rotation/translation functions) is, at least to me, misleading with respect to its arguments. The doc lists: Code:
<viewpoint>.setEuler( [yaw,pitch,roll] mask = viz.HEAD_ORI # Positional argument mode = viz.ABS_PARENT # Positional argument ) Code:
viz.MainView.setEuler([90, 0, 0], mode = viz.REL_LOCAL) The only way to get the desired results is to call like this Code:
viz.MainView.setEuler(90, 0, 0, mode = viz.REL_LOCAL) Code:
viz.MainView.setEuler([90, 0, 0], viz.HEAD_ORI, viz.REL_LOCAL) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
setEuler method of Shadow module | omidbrb | Vizard | 1 | 02-22-2010 09:35 AM |
setEuler after Linking problem | durf | Vizard | 1 | 06-05-2009 01:41 PM |
Problem with getEuler and setEuler | Sandro Holzer | Vizard | 6 | 10-21-2008 05:01 AM |
quad buffered frame rate confusion | michaelrepucci | Vizard | 11 | 09-17-2008 08:55 AM |
confusion over vizcave and viewpoint | michaelrepucci | Vizard | 3 | 08-01-2008 01:54 PM |