rotateOnWorldAxis does not rotate

Describe the bug

rotateOnWorldAxis does not rotate around world axis, it rotates locally.

To Reproduce

Go to example..blue sphere does not rotate around the yellow one.

Live example

codepen example

Expected behavior

Expected to see the blue sphere rotating around world’s y axis

Platform:

  • Device: Desktop
  • OS: Windows
  • Browser: Chrome, Firefox
  • Three.js version: r.124

Author: Fantashit

1 thought on “rotateOnWorldAxis does not rotate

  1. @mrdoob I think that would be reasonable.

    To improve clarity of the docs, something like the following is the best I can think of so far. The words are carefully-chosen…

    rotateOnAxis()
    
    Rotate the object on an axis in object space. The axis is assumed to be normalized.
    
    
    rotateOnWorldAxis()
    
    Rotate the object on an axis in world space. The axis is assumed to be normalized.
    
    This method does not support objects having rotated parent(s).
    
    
    rotateAroundWorldAxis()
    
    Rotate the object around an axis in world space. (The axis passes through point.) The axis is assumed to be normalized.
    
    This method does not support objects having rotated parent(s).
    

Comments are closed.