Skip to content

Commit 29ad29d

Browse files
committed
document ragdolldata::move()
1 parent 4ea2bc5 commit 29ad29d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/engine/model/ragdoll.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@ class ragdolldata final
133133
ragdolldata(const ragdollskel *skel, float scale = 1);
134134
~ragdolldata();
135135

136+
/**
137+
* @brief Moves the joints of the ragdoll.
138+
*
139+
* Moves the ragdoll joints by an amount indicated by the amount of time
140+
* passed to `ts`. The ragdoll movement will be calculated using
141+
* the ragdollwaterfric variable if water is true, and ragdollairfric if not.
142+
*
143+
* @param water whether the ragdoll is moving through air (false) or water(true)
144+
* @param ts the time to use to calculate physics with, in seconds
145+
*/
136146
void move(bool water, float ts);
137147

138148
/**

0 commit comments

Comments
 (0)