How can I make HP lower once the camera collides with a specified object?

worked perfectly with my retry. here’s the link if you wanna see it

https://playground.babylonjs.com/#A2LQK1

thank you so much!!!