change code to use Vec3.length()