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