Run time edition of the scene

Hi guys,

I would like my users to be able to customize part of a scene (rotate specific entities along the Y axis, translate along X and Y), and allow the user to move the camera in order to do these customizations. In other words, exactly what the editor allows us to do.

Is there any way I can do this without re-inventing the wheel ? My current approch would be to recreate these :

image
image

I would build 3D assets that would serve a the axis translation / rotation tool, but if you guys have a better solution i’ll take it :smiley:

There was a project that Will was tinkering with that doesn’t seem to work any more: https://playcanvas.com/project/768040/overview/gizmo

That could get you started.

Otherwise, you can take a look at the Editor code where we have source maps and you can see how it’s created there:

I’ve fixed Will’s project in a fork: https://playcanvas.com/project/965844

2 Likes

Thank you SO MUCH <3