Sly 1:CM

From SlyMods
Jump to navigation Jump to search
Data Structure
GameSly Cooper and the Thievius Raccoonus

CM is the struct in Sly Cooper and the Thievius Raccoonus that is responsible for the game camera’s position, rotation, etc.

Fields

Offset Size Type Name Description
0x40 0x4
float
x X position
0x44 0x4
float
y Y position
0x48 0x4
float
z Z position
0xb0 0x4
float
fade dist Distance at which objects fade out
0xe4 0x4
float
pitch Tilts the camera but skews the perspective
0xec 0x4
float
yaw Tilts the camera but skews the perspective
0xf0 0x4
float
h offset Horizontal position offset
0xf4 0x4
float
v offset Vertical position offset
0xf8 0x4
float
render distance Distance of the clipping plane
0xfc 0x4
float
zoom How closely the camera is zoomed in
0x1c4 0x4
float
actual FOV Real current FOV, gradually adjusts to target
0x1c8 0x4
float
target FOV Target value for the real FOV
0x200 0x4
float
fog amount Float from 0.0 to 1.0
0x204 0x4
RGBA
fog color Some objects override this with their own values
0x220 0x4
int
reset cm flag Set to 1 to reset camera values to defaults
0x3dc 0x4
struct LO*
focus pointer Pointer to the currently focused entity
0x528 0x4
int
angular behavior Changes camera angle and behavior based on the value
0x52c 0x4
float
rotation Rotation angle in radians (-3.14 to +3.14)