Length of a vector is calculated as √( x² + y² + z²). So in your program, something like this will works: std::sqrt( velocity.x ...
確定! 回上一頁