I have actually a problem which is quite stupid but I really need help to solve it:
I have a sphere (position 0,0,0) on which I want to "put" a mesh. I have a ray coming from the center on the sphere to a point somewhere in space, and want to put the mesh on the sphere surface, oriented to the center of the sphere, as if the sphere was a planet.
I don't find anything in order to rotate a mesh from a ray in Babylon, and all the tries I do with a trigonometric approach aren't satisfying…
Here is the code doing that: http://www.babylonjs-playground.com/#C1M3C7
Thanks for your help!