Antkeeper  0.0.1
Functions
ant-skeleton.cpp File Reference
#include "game/ant/ant-skeleton.hpp"
#include "game/ant/ant-bone-set.hpp"
#include <engine/math/angles.hpp>
#include <engine/math/euler-angles.hpp>

Go to the source code of this file.

Functions

void generate_ant_skeleton (skeleton &skeleton, ant_bone_set &bones, const ant_phenome &phenome)
 Generates a skeleton for an ant model. More...
 

Function Documentation

◆ generate_ant_skeleton()

void generate_ant_skeleton ( skeleton skeleton,
ant_bone_set bones,
const ant_phenome phenome 
)

Generates a skeleton for an ant model.

Parameters
[in,out]skeletonAnt skeleton.
[out]bonesAnt bone set.
[in]phenomeAnt phenome.

The following bone hierarchy will be constructed:

  • mesosoma
  • * procoxa_l
  • * * profemur_l
  • * * * protibia_l
  • * * * * protarsomere1_l
  • * procoxa_r
  • * * profemur_r
  • * * * protibia_r
  • * * * * protarsomere1_r
  • * mesocoxa_l
  • * * mesofemur_l
  • * * * mesotibia_l
  • * * * * mesotarsomere1_l
  • * mesocoxa_r
  • * * mesofemur_r
  • * * * mesotibia_r
  • * * * * mesotarsomere1_r
  • * metacoxa_l
  • * * metafemur_l
  • * * * metatibia_l
  • * * * * metatarsomere1_l
  • * metacoxa_r
  • * * metafemur_r
  • * * * metatibia_r
  • * * * * metatarsomere1_r
  • * head
  • * * mandible_l
  • * * mandible_r
  • * * antennomere1_l
  • * * * antennomere2_l
  • * * antennomere1_r
  • * * * antennomere2_r
  • * petiole
  • * * †postpetiole
  • * * * gaster
  • * * * * sting
  • * †forewing_l
  • * †forewing_r
  • * †hindwing_l
  • * †hindwing_r

†: bone presence dependent on phenome.

The following poses will be generated:

  • pupa

Definition at line 848 of file ant-skeleton.cpp.