BSPParser
Simple and modern library for parsing the Valve BSP format
Loading...
Searching...
No Matches
Public Attributes | List of all members
BspParser::PhysModel Struct Reference

#include <phys-model.hpp>

Public Attributes

int32_t modelIndex = 0
 
int32_t solidCount = 0
 
std::span< const std::byte > collisionData
 
std::span< const std::byte > textSectionData
 

Detailed Description

Raw physmesh solid and text data for a given model.

Member Data Documentation

◆ collisionData

std::span<const std::byte> BspParser::PhysModel::collisionData

Raw .PHY solid data. Use PhyParser::parseSurfaces from the accompanying PHYParser library to parse this.

◆ modelIndex

int32_t BspParser::PhysModel::modelIndex = 0

Index into the model lump this physics model is for

◆ solidCount

int32_t BspParser::PhysModel::solidCount = 0

Total number of solids in the collision surface sections

◆ textSectionData

std::span<const std::byte> BspParser::PhysModel::textSectionData

Raw .PHY text section data. Use PhyParser::parseTextSection from the accompanying PHYParser library to parse this.


The documentation for this struct was generated from the following file: