About Mesh.Position.Add

Im studying this mesh.position.add It only tells me that it is getting a Vector3.
In my Mind it is adding the Mesh current position and the new Vector3 assigned to its parameter
but when Im trying to console.log(it makes no sense because my current mesh position when you added the new Vector3 is way different
Any more Idea what this all about.

.add is not adding in the current vector but returns a new instance with the result. In your case you can use .addInPlace to add the parameter into the current instance :slight_smile:

1 Like

Hello and welcome!

Here is API - Vector3 | Babylon.js Documentation
Example (see console) - https://playground.babylonjs.com/#I9SGC0#1

1 Like

thank you guys