Alchemy
Loading...
Searching...
No Matches

BattleCamera Struct Reference

The battle camera: its eye, the focus it turns about, and its pitch, yaw and distance. More...

#include <battle/battle_display.h>

Data Fields

s32 eye [3]
 The eye, 16.16 fixed-point pixels: written each frame distance behind the focus along the turned view.
s32 pos [3]
 the focus, 16.16 fixed-point pixels
s32 unk18
 cleared beside followPos; not read by name in TBS
s32 * followPos
 when set, the focus followed instead of pos
s32 distance
 eye to focus, 16.16 fixed-point pixels
u8 unk24 [16]
 not named by TBS code
u16 pitch
 1/65536 turns
u16 yaw
 1/65536 turns
u8 unk38 [20]
 not named by TBS code

Detailed Description

The battle camera: its eye, the focus it turns about, and its pitch, yaw and distance.

It lives in the HEAP_SLOT_CAMERA work slot.

Definition at line 18 of file battle_display.h.

Field Documentation

◆ eye

s32 BattleCamera::eye[3]

◆ pos

◆ unk18

s32 BattleCamera::unk18

cleared beside followPos; not read by name in TBS

Definition at line 23 of file battle_display.h.

Referenced by Camera_ConfigureScene(), Camera_InitDefaultTransform(), Camera_ResetSceneDefaults(), and Map_InitializePerspectiveScene().

◆ followPos

s32* BattleCamera::followPos

◆ distance

◆ unk24

u8 BattleCamera::unk24[16]

not named by TBS code

Definition at line 26 of file battle_display.h.

◆ pitch

◆ yaw

◆ unk38

u8 BattleCamera::unk38[20]

not named by TBS code

Definition at line 29 of file battle_display.h.