Adding a mesh at mouse position in a PhotoDome using TransformNode

I’ve been playing around with adding a mesh to a PhotoDome at the position the mouse has been clicked. I have it working using createPickingRay / pickWithRay and setting the mesh’s position to the pickedPoint directly using it’s x,y,z coordinates. However, up until now I have been positioning static meshes using TransformNodes with a fixed z position and setting the node’s x/y rotation rather than positioning the mesh itself.

Is there any way I can align the two so I can position the mesh at the mouse pointer location using a similar rotation approach? I want to at some point (de)serialise the scene and would prefer not having to mix two types of positioning data.


Hi @popntop and welcome to the forum

I’m not sure to understand. Can you please provide a PG and some explanation?