|
NSUNI/NSLAR Library a250670
|
Contains structures and functions for working with static collisions. More...
Classes | |
| struct | Collision |
| Struct that contains all necessary information for collision detection. More... | |
| struct | CollisionTest |
| Struct representing a set of geometric shapes for collision testing. More... | |
| struct | ConvertParam |
| Parameters for converting a simplified mesh to the in-game collision format. More... | |
| struct | Edge |
| Struct defining a wall edge used in collision detection. More... | |
| struct | Triangle |
| Struct defining a single triangle used in collision detection. More... | |
Enumerations | |
| enum class | SurfaceFeatures : u16 { SurfaceFeatures::kNone = 0 , SurfaceFeatures::kDirt = 0b0000'0001 , SurfaceFeatures::kDirt2 = 0b0000'0010 , SurfaceFeatures::kSand = 0b0000'0011 , SurfaceFeatures::kStone = 0b0000'0100 , SurfaceFeatures::kGrass = 0b0000'0101 , SurfaceFeatures::kWater = 0b0000'0110 , SurfaceFeatures::kWood = 0b0000'0111 , SurfaceFeatures::kStone2 = 0b0000'1000 , SurfaceFeatures::kMetal = 0b0000'1001 , SurfaceFeatures::kShadow = 0b0001'0000 , SurfaceFeatures::kPassThrowables = 0b010'0000'0000 , SurfaceFeatures::kPassCamera = 0b100'0000'0000 } |
| Enum representing different settings for surfaces. More... | |
| enum class | PushFeatures : u16 { PushFeatures::kNone = 0 , PushFeatures::kPushBack = 0b01 , PushFeatures::kPushIfStuck = 0b10 } |
| Enum representing different push behaviors for entities. More... | |
Functions | |
| SModel | Convert (const Collision &collision) |
| Converts collision data from the in-game format to a simplified model representation. | |
| Collision | Convert (SModel &&smodel, const std::vector< ConvertParam > &mesh_params, bool auto_wall=true, u32 shift=5) |
| Converts a simplified representation of a model to the in-game collision format. | |
| bool | IsOfType (BufferView buffer) |
| Tests if the provided file is a collision config. | |
| Collision | Import (BufferView buffer) |
| Parses a binary file and converts it to a structured collision. | |
| Buffer | Export (const Collision &collision) |
| Converts a collision config to a binary file representation. | |
| std::vector< ConvertParam > | GenerateConvertParam (const Collision &collision) |
| Generates conversion parameters for SMesh objects to achieve a similar in-game collision config when converting back to it. | |
Contains structures and functions for working with static collisions.