FreeCamera constant forward motion

Hi,

What would be the best way with internal methods of FreeCamera & Vector3 of doing this instead of adding x y and z and scaling the values manually? I tried using camera.position.add(newPos) and it didn’t do anything

https://playground.babylonjs.com/#T5N0CF#1

Thanks

D

vector3.add(otherVector3) returns a new Vector3 as a result
you have to use addInPlace() instead : https://playground.babylonjs.com/#T5N0CF#2

Thanks :slight_smile: