ngl
ngl copied to clipboard
Does the mouse action change the axis?
Hey there. How are the things going? I'd like to know if when the user rotates the NGL representation using a mouse, does the vector basis (axis frame) change or just the xyz coordinates?
Currently, I am getting the rotate matriz using
stage.viewerControls.getOrientation(); which is a 4x4 matrix.
I'd like to use the same matrix to replace the PDB coordinates. So, that being said, I am getting the PDB xyz matrix and multiplying by the NGL rotate matrix.
Do you guys think that this is best way to do that?
Sounds like you want a local coordinate system for a pdb file. That does only work if there is just a single file loaded.