Updated to new Vec3 functions