This example shows how we can pick the scene and add a three.js object.
The first step is to call the intersectMapObjects method using the x and y position of the click event.
Secondly, we extract the 3D point and transform it from local into world space.
Finally, we add the cube and reposition it during rendering as demonstrated in the ThreejsAddSimpleObject example.
Generated using TypeDoc
This example shows how we can pick the scene and add a three.js object.
The first step is to call the intersectMapObjects method using the x and y position of the click event.
Secondly, we extract the 3D point and transform it from local into world space.
Finally, we add the cube and reposition it during rendering as demonstrated in the ThreejsAddSimpleObject example.