Line drawn inside a rectangle that is linked with a mesh doesn't move with the mesh

What I’m trying to do is to draw a line diagonally from top left corner to bottom right corner of a rectangle that is linked with a mesh.

This is how I tried: Babylon.js Playground

When the camera moves, the rectangle moves with the box but the line doesn’t. It appears fixed on the screen. How can I make it stuck to the rectangle?

Interesting…let me check :slight_smile:

1 Like

It will be fixed in next nightly!

Thanks a lot

1 Like

Happy to hear that :slightly_smiling_face:

Thank you

1 Like

Nice bug-find, DR. Thanks!

And thanks for the fix, DK!

1 Like

At first, I was not having realized that it’s a bug :wink:

1 Like

Bugs are OFTEN that way. You did perfect. Check self/code first, read docs, create demo playground, and then ask others for info. (hi-5)

SUPER-programmers go further. They find where bug is located… inside GUI-feature source code, and then REALLY SUPER programmers fix the problem BEFORE Deltakosh, and with tighter code than Deltakosh would have used. This is not easy AT ALL, because DK is fast and thin-coding. :slight_smile:

2 Likes