How can I do multiple rotations in the Virtual Reality Toolbox 4.5 (R2007a)?

Technical Source
1 min readAug 17, 2021

--

I want to change an object in my virtual world. I need to rotate it with different angles through different axes. Is this possible?

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

This is expected behavior in Virtual Reality Toolbox 4.5 (R2007a).

In VRML, the Transform node is capable of only one rotation. The rotation is specified by the rotation axis (the first three elements of the “rotation” field) and rotation angle (the fourth element).

If you want to do multiple rotations around multiple axes, you have

the following two possibilities:

  • Aggregate the two rotations (compute aggregated rotation axis and

angle) and apply the aggregated values.

  • Add another Transform node below (or above) the existing one, then do

each rotation in its own node.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet