Camera.rotate
- Camera.rotate(dx, dy)[source]
Rotate the camera based on current mouse movement.
- Parameters
- dxfloat
Number of rotation increments around the Z axis, with each increment the size of
Camera.rotation_delta
.- dy: float
Number of rotation increments around the X axis, with each increment the size of
Camera.rotation_delta
.
- Returns
- None
Notes
Camera rotations are only available if the current view is a perspective view (
camera.view.current == camera.view.VIEWPORTS["perspective"]
).