1#ifndef COASTLINE_CAMERA_H
2#define COASTLINE_CAMERA_H
94#if TGR_BOSS_RALLY && defined(__cplusplus)
160#if TGR_BOSS_RALLY && defined(__cplusplus)
164#if TGR_REGION == TGR_REGION_JP || TGR_REGION == TGR_REGION_EU
177#if TGR_BOSS_RALLY && defined(__cplusplus)
190#if TGR_BOSS_RALLY && defined(__cplusplus)
194#if TGR_BOSS_RALLY && defined(__cplusplus)
208#if TGR_BOSS_RALLY && defined(__cplusplus)
Vehicle * g_pActiveCameraVehicle
The vehicle the view being drawn follows.
void UpdateCameraLookAtTarget(Vehicle *vehicle)
Put the look-at point above a vehicle, ahead of it by a lead that shrinks with its speed.
u16 g_awCameraRayHitInstances[]
The placed models of the ground below the active camera, the nearest first.
s32 g_dwCameraRayGroundSurface
The surface of the track below the active camera found by the last ray cast.
void SetupCameraMatrix(CameraFrame *camera, f32 fov, f32 farDistance, f32 width, f32 height)
Build the view and the perspective of a camera for a rectangle of the screen, and set the far distanc...
void ComputeCameraBasis(Vehicle *vehicle, CameraFrame *camera)
Point a camera at the look-at point of a vehicle and build its axes about the world up.
void SetupFrustumCorners(CameraFrame *camera, f32 fov, f32 farDistance, f32 width, f32 height)
Set up the corners of the far rectangle of the view of a camera, which the shadows clip to.
f32 g_fCameraRayGroundDistance
What CastRayAgainstTrack() found below the camera of the view being drawn.
s32 g_dwCameraRayNearbyCount
The nearby placed models found by the last camera ray cast.
s32 g_bVehicleTrackCollisionCorrected
Whether the last call of ResolveVehicleTrackCollision() moved the camera.
void UpdateCameraSystem(Vehicle *vehicle)
Update every camera of a vehicle for a frame.
void ResolveVehicleTrackCollision(Vehicle *vehicle, CameraFrame *camera, Vec3f *target)
Keep a camera out of the track: if the line from the look-at point of a vehicle to the camera passes ...
void PlaceTrackCamera(Vehicle *vehicle)
Make the trackside camera active, placed ahead of and beside a vehicle.
void UpdateCameraChase(Vehicle *vehicle, CameraFrame *camera, f32 share)
Move the chase camera behind a vehicle, blending the direction it was in towards the one behind the v...
Vec3f g_vFrustumHalfRight
Half the far rectangle of the view, across.
s32 g_dwCameraRayHitCount
Set to 1 by the ray cast down from the active camera each frame.
s32 g_dwReplayCameraSwitchTimer
The frames until the replay changes its camera view again.
u16 g_awCameraRayNearbyInstances[]
The indices of nearby placed models found by the last camera ray cast.
Vec3f g_afFrustumCenter
The middle of the far rectangle of the view.
s32 g_dwRearViewMirrorMode
The size of the rear-view mirror over the bumper view: 0 for none, 1 small, 2 middling and 3 large.
void InitCameraForVehicle(Vehicle *vehicle)
Set up the cameras of a vehicle at the start of a race.
Vec3f g_vFrustumHalfUp
Half the far rectangle of the view, up.
void UpdateCameraViewBasisAndFov(Vehicle *vehicle, CameraFrame *camera)
Point a camera at a point one unit above a vehicle, build its axes about the world up,...
s32 g_dwReplayCameraHoldTimer
Counts down the frames after the chase camera hits the track in a replay.
The state the renderer shares between the parts of a frame.
Whether an instant replay is playing.
A frame of reference: three axes and a position, the rows of a 4 by 4 matrix whose last column Finish...
Definition render.h:30
A point or direction in space.
Definition vecmath.h:17
A vehicle.
Definition vehicle.h:143
Integer and floating-point types of libultra.
float f32
Definition ultratypes.h:38
unsigned short u16
Definition ultratypes.h:19
int s32
Definition ultratypes.h:25
The vector and matrix arithmetic of the game, its arctangent and power, the triangle and segment test...
The vehicles of a race, the cars they are, and their place on the track.