Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchCameraControl Struct Reference

#include <match_camera_3d.h>

Public Attributes

float zoomSteps = 0.0f
 
float orbitYaw = 0.0f
 
float orbitPitch = 0.0f
 
RenderMath::Vec3 pan
 
bool retarget = false
 
RenderMath::Vec3 retargetPoint
 
bool followBall = false
 
bool reset = false
 

Detailed Description

User camera control for one frame, already converted to world units by the renderer (it owns the projection the user was looking at).

Member Data Documentation

◆ followBall

bool MatchCameraControl::followBall = false

Free camera keeps orbiting the moving ball.

◆ orbitPitch

float MatchCameraControl::orbitPitch = 0.0f

Positive values raise the camera towards a top-down view.

◆ orbitYaw

float MatchCameraControl::orbitYaw = 0.0f

Orbit around the target, radians (positive yaw turns the view left).

◆ pan

RenderMath::Vec3 MatchCameraControl::pan

Metres the free camera's target moves across the ground.

◆ reset

bool MatchCameraControl::reset = false

◆ retarget

bool MatchCameraControl::retarget = false

◆ retargetPoint

RenderMath::Vec3 MatchCameraControl::retargetPoint

◆ zoomSteps

float MatchCameraControl::zoomSteps = 0.0f

Mouse-wheel steps (positive zooms in).


The documentation for this struct was generated from the following file: