Following the http://www.b4x.com/forum/share-your-creations/3908-exercise-3d-rotation.html#post22546 I translated and improved it into a library.
There are two similar demo programs, for desktop and device. Start with the desktop and understand the functionality, then it will be easier on the device.
The attachment includes source (cs file to put in the libraries directory) and help in addition to the dll.
Ver 1.1 - addition of ZAxis method to change the direction of Zaxis, and improvement related to presentation of concave bodies. Desktop program is updated with more bodies.
Ver 1.2 - updates the drawing to use position in 3D and rotation in one method. Also GcCollect added to keep memory under control.
An example of how to display two objects with alternating order is added to the updated programs of the previous version.
Ver 1.3 - When doing multiple axes rotation at the same time the results vary with the order of rotation. This update enables selection of 6 different orders of rotation.
There are two similar demo programs, for desktop and device. Start with the desktop and understand the functionality, then it will be easier on the device.
The attachment includes source (cs file to put in the libraries directory) and help in addition to the dll.
Ver 1.1 - addition of ZAxis method to change the direction of Zaxis, and improvement related to presentation of concave bodies. Desktop program is updated with more bodies.
Ver 1.2 - updates the drawing to use position in 3D and rotation in one method. Also GcCollect added to keep memory under control.
An example of how to display two objects with alternating order is added to the updated programs of the previous version.
Ver 1.3 - When doing multiple axes rotation at the same time the results vary with the order of rotation. This update enables selection of 6 different orders of rotation.
Attachments
Last edited: