Guest User

Untitled

a guest
May 25th, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. this->cDirection.x = (cos(drx::math::Radians(this->yaw)) * cos(drx::math::Radians(this->pitch)));
  2. this->cDirection.y = sin(drx::math::Radians(this->pitch));
  3. this->cDirection.z = (sin(drx::math::Radians(this->yaw)) * cos(drx::math::Radians(this->pitch)));
  4. this->front = this->cDirection.Normalize();
  5. this->back = this->bDirection.Normalize();
  6. this->right = this->worldUp.Cross(this->front).Normalize();
Advertisement
Add Comment
Please, Sign In to add comment