Let me describe the project first. We intent to create a program that loads molecules (in a simplified way) from a xml file.
The rpoblem lies that after creating the first atom, the second atom needs to be rotated AROUND the first. But, this sounds easier than it is, as RotateAround happens on the world axis.
The problem is multiplied by the fact that each object (after it’s rotated), creates more objects (attached to itself), that all need to be rotated in a similar way.
The scripts that handle the rotations are:
-scr_generate, this generates the ’ balls’
-scr_mono, generates 1 child object
-scr_duo, generates 2 child objects
-scr_trio, generates 3 child objects
-scr_tetra, generates 2 child objects
In the link provided, the (nearly whole) project is there, after starting the following functions can be used to manipulate the camera and the view: left mouse rotates the molecule, right mouse moves the camera, the scroll wheel, surprisingly, zooms in and out. The menu on the left is sorted in the following order: hide menu, create molecule (not working (yet)), load molecule, information (in dutch), take screenshot, and quit.
The questions comes down to: How do we rotate objects around another object (parent) using the parent’s local xyz axis?
If we should provide more (or less) information on something, please ask us.
We thank you in advance,
Here’s the link: Dropbox - Error - Simplify your life