CAM

From BFBB Wiki
Jump to: navigation, search
CAM
Camera
Type Object
Object ID 0x07
Games used Night of 100 Frights
Battle for Bikini Bottom
The SpongeBob SquarePants Movie
The Incredibles
Rise of the Underminer

This asset defines cameras. Usually, the game takes control from you to display a certain camera for a moment, such as when talking to NPCs or showing you something elsewhere in the level.

Format[edit]

Cameras are object assets, so they start with their 0x8 byte header, then are followed by:

Offset Type Description
0x8 Vector3 Position
0x14 Vector3 Normalized forward vector
0x20 Vector3 Normalized up vector
0x2C Vector3 Normalized left vector
0x38  ?[3] Unknown (null)
0x44 short Unknown, usually 30
0x46 short Unknown, usually 45
0x48 float Field of View (degrees)
0x4C float Switch Time (seconds). Time it takes to move the camera to this position.
0x50 int Unknown, usually 0, 1, 2, 5, or 6
0x54  ?[3] Unknown (null)
0x60 float[4] Unknown
0x70  ?[2] Unknown (null)
0x78 byte Flag 1, usually 0
0x79 byte Flag 2, usually 1
0x7A byte Flag 3, usually 1
0x7B byte Flag 4, usually 0x8F (143) or 0xC0 (192)
0x7C  ?[2] Unknown (null)
0x84 byte Flag 5, usually 0, 2, or 3
0x85 byte Flag 6, usually 0
0x86 byte Flag 7, usually 0
0x87 byte Flag 8, usually 0
Events
0x88 Event[numberOfEvents] Events

Events[edit]