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

#include <match_camera_3d.h>

Public Attributes

RenderMath::Vec3 ball
 
RenderMath::Vec3 ballVelocity
 
RenderMath::Vec3 carrier
 
float carrierYaw = 0.0f
 
bool hasCarrier = false
 
float attackDirection = 1.0f
 
bool livePlay = false
 
bool shotInFlight = false
 
bool goalCelebration = false
 
RenderMath::Vec3 celebration
 
bool hasCelebration = false
 
bool reducedMotion = false
 
RenderMath::Vec3 active
 
bool hasActive = false
 

Detailed Description

What the camera should look at this frame, in metric world space.

Member Data Documentation

◆ active

RenderMath::Vec3 MatchCameraFocus::active

Play mode: the human's active footballer, framed with the ball.

◆ attackDirection

float MatchCameraFocus::attackDirection = 1.0f

+1 when the attacking side plays towards +x, -1 otherwise.

◆ ball

RenderMath::Vec3 MatchCameraFocus::ball

◆ ballVelocity

RenderMath::Vec3 MatchCameraFocus::ballVelocity

Ball ground velocity in metres per rendered second.

◆ carrier

RenderMath::Vec3 MatchCameraFocus::carrier

◆ carrierYaw

float MatchCameraFocus::carrierYaw = 0.0f

◆ celebration

RenderMath::Vec3 MatchCameraFocus::celebration

Where the goal is being celebrated (the scorer), if known.

◆ goalCelebration

bool MatchCameraFocus::goalCelebration = false

◆ hasActive

bool MatchCameraFocus::hasActive = false

◆ hasCarrier

bool MatchCameraFocus::hasCarrier = false

◆ hasCelebration

bool MatchCameraFocus::hasCelebration = false

◆ livePlay

bool MatchCameraFocus::livePlay = false

Match context for the TV director.

◆ reducedMotion

bool MatchCameraFocus::reducedMotion = false

The director holds the main camera when motion should be reduced.

◆ shotInFlight

bool MatchCameraFocus::shotInFlight = false

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