Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void UpdateCameraVectors() {
- 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->right = this->worldUp.Cross(this->front).Normalize();
- this->up = this->front.Cross(this->right).Normalize();
- }
Advertisement
Add Comment
Please, Sign In to add comment