A reimplementation of Mario Kart Wii's physics engine in C++
Loading...
Searching...
No Matches
Field::KColHeader Struct Reference

#include <KCollisionTypes.hh>

Description

The header of the KCL file format. It is 0x3C bytes long (for Mario Kart Wii).

Definition at line 176 of file KCollisionTypes.hh.

Public Attributes

u32 pos_data_offset
 0-indexed offset to array of position vectors.
 
u32 nrm_data_offset
 0-indexed offset to array of normal vectors.
 
u32 prism_data_offset
 1-indexed offset to array of normal vectors.
 
u32 block_data_offset
 Offset to collision octree blocks.
 
f32 prism_thickness
 Depth of a triangular prism along its normal vector.
 
EGG::Vector3f area_min_pos
 Smallest possible coordinate in the model.
 
u32 area_x_width_mask
 The x dimension of the octree's bounding box.
 
u32 area_y_width_mask
 The y dimension of the octree's bounding box.
 
u32 area_z_width_mask
 The z dimension of the octree's bounding box.
 
u32 block_width_shift
 Used to initialize octree navigation.
 
u32 area_x_blocks_shift
 Used to initialize octree navigation.
 
u32 area_xy_blocks_shift
 Used to initialize octree navigation.
 
f32 sphere_radius
 Clamps the sphere we check collision against.
 

Member Data Documentation

◆ area_min_pos

EGG::Vector3f Field::KColHeader::area_min_pos

Smallest possible coordinate in the model.

Definition at line 182 of file KCollisionTypes.hh.

◆ area_x_blocks_shift

u32 Field::KColHeader::area_x_blocks_shift

Used to initialize octree navigation.

See also
searchBlock.

Definition at line 187 of file KCollisionTypes.hh.

◆ area_x_width_mask

u32 Field::KColHeader::area_x_width_mask

The x dimension of the octree's bounding box.

See also
searchBlock.

Definition at line 183 of file KCollisionTypes.hh.

◆ area_xy_blocks_shift

u32 Field::KColHeader::area_xy_blocks_shift

Used to initialize octree navigation.

See also
searchBlock.

Definition at line 188 of file KCollisionTypes.hh.

◆ area_y_width_mask

u32 Field::KColHeader::area_y_width_mask

The y dimension of the octree's bounding box.

See also
searchBlock.

Definition at line 184 of file KCollisionTypes.hh.

◆ area_z_width_mask

u32 Field::KColHeader::area_z_width_mask

The z dimension of the octree's bounding box.

See also
searchBlock.

Definition at line 185 of file KCollisionTypes.hh.

◆ block_data_offset

u32 Field::KColHeader::block_data_offset

Offset to collision octree blocks.

Definition at line 180 of file KCollisionTypes.hh.

◆ block_width_shift

u32 Field::KColHeader::block_width_shift

Used to initialize octree navigation.

See also
searchBlock.

Definition at line 186 of file KCollisionTypes.hh.

◆ nrm_data_offset

u32 Field::KColHeader::nrm_data_offset

0-indexed offset to array of normal vectors.

Definition at line 178 of file KCollisionTypes.hh.

◆ pos_data_offset

u32 Field::KColHeader::pos_data_offset

0-indexed offset to array of position vectors.

Definition at line 177 of file KCollisionTypes.hh.

◆ prism_data_offset

u32 Field::KColHeader::prism_data_offset

1-indexed offset to array of normal vectors.

Definition at line 179 of file KCollisionTypes.hh.

◆ prism_thickness

f32 Field::KColHeader::prism_thickness

Depth of a triangular prism along its normal vector.

Definition at line 181 of file KCollisionTypes.hh.

◆ sphere_radius

f32 Field::KColHeader::sphere_radius

Clamps the sphere we check collision against.

See also
searchBlock.

Definition at line 189 of file KCollisionTypes.hh.