Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this->cDirection.x = (cos(drx::math::Radians(this->yaw)) * cos(drx::math::Radians(this->pitch)));
- this->cDirection.y = sin(drx::math::Radians(this->pitch));
- this->cDirection.z = (sin(drx::math::Radians(this->yaw)) * cos(drx::math::Radians(this->pitch)));
- this->front = this->cDirection.Normalize();
- this->back = this->bDirection.Normalize();
- this->right = this->worldUp.Cross(this->front).Normalize();
Advertisement
Add Comment
Please, Sign In to add comment