def _update_yaw_and_pitch(self):
front = Vector3([<NUM_LIT:0.0>, <NUM_LIT:0.0>, <NUM_LIT:0.0>])<EOL>front.x = cos(radians(self.yaw)) * cos(radians(self.pitch))<EOL>front.y = sin(radians(self.pitch))<EOL>front.z = sin(radians(self.yaw)) * cos(radians(self.pitch))<EOL>self.dir = vector.normalise(front)<EOL>self.right = vector.normalise(vector3.cross(self.dir, self._up))<EOL>self.up = vector.normalise(vector3.cross(self.right, self.dir))<EOL>
Updates the camera vectors based on the current yaw and pitch