Search the Community
Showing results for tags 'tracknode'.
Found 2 results
TrackNode and pivot on exported mesh with canvas2d
Gil posted a topic in Questions & AnswersHello everyone, I'm trying to get a label system which could work like https://jig.space/view?jig=v4Ga2VKw I'm using the 3ds max exporter to export the meshes and I wanted to use the pivot point as a base to place the label. Maybe there is a better way to do it. When I create my Group2D (containing a line, rectangle and text) and set the trackNode property to use the mesh, I can see that the pivot point is not used. It looks like it might not event been exported (I attached the file) since the pivotMatrix is null. Maybe I'm missing something ? Infos.babylon
How to set trackNode of a Rectangle2D?
MacSkelly posted a topic in Questions & AnswersI want to create a kind of tool tip for my scene. What I basically did was create a Rectangle2D shape and set isVisible to false. When I click on a mesh I want the Rectangle to become visible and to track the mesh that was clicked on. I tried just setting rectangle.trackNode = mesh but it doesn't seem to work. Is there a way to do this? Does the property have a different name like with isVisible and levelVisible? I basically want to create something similar to this demo: http://babylonjs-playground.com/#1N9RJY#5 But to have it in such a way that the rectangles only appear when the corresponding mesh has been clicked on.