How can I change the 'center of rotation' in my Simulink 3d Animation viewer in Simulink 3D Animation 5.1 (R2009b)?
3 views (last 30 days)
Show older comments
In my Simulink 3D Animation Viewer, I would like to change the “center of rotation” to be a different point than the origin. I tried to go to Navigation->Method->Examine and then use the left-mouse-button, but this only allowed me to rotate the scene around the origin and not rotate it around some particular CAD geometry.
I would like to be able to do this so that I can view it from different angle with a particular point being the center of interest.
Accepted Answer
MathWorks Support Team
on 11 Dec 2009
If you want to rotate the whole scene during navigation around a pivot that is not the origin ("center of rotation" for a given VRML node is something else), we have several ways how to achieve this effect:
1. Create a viewpoint that looks at the object (so that the object is around the center of the VR window). Then, observing the object can be done best with keyboard by pressing "CTRL + Arrow keys".
2. See the model ‘vr_octavia’. In its lower part, we have implemented a way how you can control Viewpoint orientation from Simulink. Moving viewpoint so that it orbits around an object should be also simple.
3. The ‘SpaceMouse’ Input block (and corresponding MATLAB ‘vrspacemouse’ object) provides way how to control Viewpoint using Spacemouse. (See the "vrtkoff_spacemouse" demo).
0 Comments
More Answers (0)
See Also
Categories
Find more on Animation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!