Cannot dispose previous line and impacts

Hello everyone

I want to measure the distance between two arbitrary point, but when I want to get the new measurement I cannot dispose() the previous line and impacts point, how can i solve this problem?
Here is my PG: https://www.babylonjs-playground.com/#GCMU2G#9

It’s the impact mesh that should be disposed, not its position. You can do it like this:

https://www.babylonjs-playground.com/#GCMU2G#11

1 Like

Hi @Evgeni_Popov thank you so much :pray: :pray: :pray: :pray: