Skip to content

Commit

Permalink
move calcrotfriction documentation to header
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Feb 9, 2025
1 parent 418ab31 commit 54d65b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/engine/model/ragdoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,6 @@ void ragdolldata::constrainrot()
}
}

/**
* @brief Sets the shadowing elements in rotfrictions according to their respective values in the pointed ragdollskel.
*
* For each member of ragdolldata::rotfrictions, sets its value to the transposed multiplication of
* the data pointed to by the indices of the first two vertices in the ragdollskel::rotfrictions tri data.
*
* Previous values in ragdolldata::rotfrictions are ignored and overwritten.
*/
void ragdolldata::calcrotfriction()
{
for(size_t i = 0; i < skel->rotfrictions.size(); ++i)
Expand Down
9 changes: 9 additions & 0 deletions src/engine/model/ragdoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,15 @@ class ragdolldata final
*/
void applyrotlimit(const ragdollskel::tri &t1, const ragdollskel::tri &t2, float angle, const vec &axis);
void constrainrot();

/**
* @brief Sets the shadowing elements in rotfrictions according to their respective values in the pointed ragdollskel.
*
* For each member of ragdolldata::rotfrictions, sets its value to the transposed multiplication of
* the data pointed to by the indices of the first two vertices in the ragdollskel::rotfrictions tri data.
*
* Previous values in ragdolldata::rotfrictions are ignored and overwritten.
*/
void calcrotfriction();
void applyrotfriction(float ts);

Expand Down

0 comments on commit 54d65b3

Please sign in to comment.