I’m trying to implement rocket jumping into NYNS. The goal was to find the distance between the picked point and the player, then add the the distances to the player’s velocity.
Here is my playground: https://playground.babylonjs.com/#LPX1FM#34
At lines 269-280 are where the issue is. I try to find the distance between the picked point and the player at line 274. I have an alert pop up with the distance, but it says [object, object].