Skip to content

Commit

Permalink
improve applyrotlimit() documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Feb 9, 2025
1 parent ea72d68 commit 418ab31
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/engine/model/ragdoll.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,14 @@ class ragdolldata final
* Modifies the vertices pointed to by the two assigned tri objects by rotating them
* to the amount indicated by the angle and about the axis specified by axis.
*
* @param t1 the first triangle to modify
* @param t2 the second triangle to modify
* @param angle the angle to rotate by
* For each vertex indicated by the indices in the triangle objects, adds to the
* newpos vec a value corresponding to the rotation desired. Increments the weight
* field for each vertex so modified by one. Does not modify the vert's pos or oldpos,
* only newpos.
*
* @param t1 the first triangle to retrieve vertices with
* @param t2 the second triangle to retrieve vertices with
* @param angle the angle in radians to rotate by
* @param axis the axis by which to rotate around
*/
void applyrotlimit(const ragdollskel::tri &t1, const ragdollskel::tri &t2, float angle, const vec &axis);
Expand Down

0 comments on commit 418ab31

Please sign in to comment.