OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
Skeleton Class Referencefinal

#include <skeleton.h>

Classes

struct  Node
 

Public Member Functions

 Skeleton (const zenkit::ModelHierarchy &src, const Animation *anim, std::string_view name)
 
size_t findNode (std::string_view name, size_t def=size_t(-1)) const
 
size_t findRootNode () const
 
std::string_view name () const
 
const Animation::Sequencesequence (std::string_view name) const
 
const Animationanimation () const
 
std::string_view defaultMesh () const
 
float colisionHeight () const
 
void debug () const
 

Public Attributes

bool ordered =true
 
std::vector< Nodenodes
 
std::vector< size_t > rootNodes
 
std::vector< Tempest::Matrix4x4 > tr
 
Tempest::Vec3 rootTr ={}
 
size_t BIP01_HEAD = size_t(-1)
 
Tempest::Vec3 bboxCol [2] ={}
 

Detailed Description

Definition at line 11 of file skeleton.h.

Constructor & Destructor Documentation

◆ Skeleton()

Skeleton::Skeleton ( const zenkit::ModelHierarchy &  src,
const Animation anim,
std::string_view  name 
)

Definition at line 9 of file skeleton.cpp.

Member Function Documentation

◆ animation()

const Animation * Skeleton::animation ( ) const
inline

Definition at line 36 of file skeleton.h.

◆ colisionHeight()

float Skeleton::colisionHeight ( ) const

Definition at line 85 of file skeleton.cpp.

◆ debug()

void Skeleton::debug ( ) const

Definition at line 74 of file skeleton.cpp.

◆ defaultMesh()

std::string_view Skeleton::defaultMesh ( ) const

Definition at line 79 of file skeleton.cpp.

◆ findNode()

size_t Skeleton::findNode ( std::string_view  name,
size_t  def = size_t(-1) 
) const

Definition at line 52 of file skeleton.cpp.

◆ findRootNode()

size_t Skeleton::findRootNode ( ) const

Definition at line 61 of file skeleton.cpp.

◆ name()

std::string_view Skeleton::name ( ) const
inline

Definition at line 34 of file skeleton.h.

◆ sequence()

const Animation::Sequence * Skeleton::sequence ( std::string_view  name) const

Definition at line 68 of file skeleton.cpp.

Member Data Documentation

◆ bboxCol

Tempest::Vec3 Skeleton::bboxCol[2] ={}

Definition at line 29 of file skeleton.h.

◆ BIP01_HEAD

size_t Skeleton::BIP01_HEAD = size_t(-1)

Definition at line 27 of file skeleton.h.

◆ nodes

std::vector<Node> Skeleton::nodes

Definition at line 22 of file skeleton.h.

◆ ordered

bool Skeleton::ordered =true

Definition at line 21 of file skeleton.h.

◆ rootNodes

std::vector<size_t> Skeleton::rootNodes

Definition at line 23 of file skeleton.h.

◆ rootTr

Tempest::Vec3 Skeleton::rootTr ={}

Definition at line 25 of file skeleton.h.

◆ tr

std::vector<Tempest::Matrix4x4> Skeleton::tr

Definition at line 24 of file skeleton.h.


The documentation for this class was generated from the following files: