$darkmode
Represents a 3D camera with orientation, movement, and physical properties. More...
#include <camera.h>
Data Fields | |
| vec3 | position |
| vec3 | front |
| vec3 | up |
| vec3 | right |
| vec3 | world_up |
| float | yaw |
| float | pitch |
| float | velocity |
| float | sensitivity |
| float | zoom |
| int | move_forward |
| int | move_backward |
| int | move_left |
| int | move_right |
| int | move_up |
| int | move_down |
| vec3 | velocity_current |
| float | acceleration |
| float | friction |
| float | yaw_target |
| float | pitch_target |
| float | rotation_smoothing |
| float | smoothed_x |
| float | smoothed_y |
| float | bobbing_time |
| float | bobbing_frequency |
| float | bobbing_amplitude |
| int | bobbing_enabled |
| float | physics_accumulator |
| float | fixed_timestep |
| float | mouse_smoothing_factor |
| double | last_mouse_x |
| double | last_mouse_y |
| int | first_mouse |
Represents a 3D camera with orientation, movement, and physical properties.
| float Camera::acceleration |
Speed increase factor.
| float Camera::bobbing_amplitude |
Vertical distance of the bobbing motion.
| int Camera::bobbing_enabled |
Boolean toggle for head bobbing effect.
| float Camera::bobbing_frequency |
Speed of the bobbing motion.
| float Camera::bobbing_time |
Accumulated time for the sine-wave oscillation.
| int Camera::first_mouse |
Flag to handle initial mouse jump.
| float Camera::fixed_timestep |
Target duration for one physics update.
| float Camera::friction |
Decay factor when no input is provided (0.0 to 1.0).
| vec3 Camera::front |
Front direction vector (normalized).
| double Camera::last_mouse_x |
Previous mouse X position.
| double Camera::last_mouse_y |
Previous mouse Y position.
| float Camera::mouse_smoothing_factor |
Input lag simulation factor for smoother movement.
| int Camera::move_backward |
| int Camera::move_down |
| int Camera::move_forward |
| int Camera::move_left |
| int Camera::move_right |
| int Camera::move_up |
| float Camera::physics_accumulator |
Residual time for fixed-step physics.
| float Camera::pitch |
Vertical rotation in degrees.
| float Camera::pitch_target |
Target pitch to lerp towards.
| vec3 Camera::position |
World position.
| vec3 Camera::right |
Right direction vector (normalized).
| float Camera::rotation_smoothing |
Interpolation factor for rotation.
| float Camera::sensitivity |
Mouse sensitivity factor.
| float Camera::smoothed_x |
Input smoothing state X.
| float Camera::smoothed_y |
Input smoothing state Y.
| vec3 Camera::up |
Up direction vector (normalized).
| float Camera::velocity |
Maximum movement speed.
| vec3 Camera::velocity_current |
Current 3D velocity vector (momentum).
| vec3 Camera::world_up |
World's up direction (usually 0,1,0).
| float Camera::yaw |
Horizontal rotation in degrees.
| float Camera::yaw_target |
Target yaw to lerp towards.
| float Camera::zoom |
Current Field of View (FOV) in degrees.