Hello everyone! I’m trying to add pins by double clicking on a point in the mesh (a triceratops skull in the playground). I wish to merge the pin mesh (a simple combination of sphere and cube) and the skull mesh and reuse the skull mesh to merge pins that are further added to it every double click event. I’m using the MergeMeshes function but it is currently returning a null value to me all the time and I’m unable to merge them together. The pins are added to the scene correctly. I’m trying to merge the meshes so that the overall model can be rotated and scaled later on.
To better demonstrate what I’m trying to achieve:
Whenever a new pin is added, it should attach/merge itself with the skull mesh and rotate along with it.
Hello!
You don’t need to merge the meshes if you just want to apply the same rotation, you can parent both to a TransformNode and rotate that node instead
Also, if you plan to add lots of pins and performance is a concern, you can use Instances Instances | Babylon.js Documentation (babylonjs.com)