diff options
Diffstat (limited to '2d/rigidbody/rigidbody_1.html')
-rw-r--r-- | 2d/rigidbody/rigidbody_1.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/2d/rigidbody/rigidbody_1.html b/2d/rigidbody/rigidbody_1.html index bf703d2..ec7e028 100644 --- a/2d/rigidbody/rigidbody_1.html +++ b/2d/rigidbody/rigidbody_1.html @@ -172,7 +172,7 @@ const <span class="code_keyword">int32</span> NUM_IMPULSES = 4; <span class="code_keyword">void</span> update(float32 deltaTimeSeconds) { applyGravity(deltaTimeSeconds); - // Add up all of the forces acting at this moment + <span class="code_comment">// Add up all of the forces acting at this moment</span> <span class="code_keyword">Vector2</span> force; for (int32 idx = 0; idx < numImpulses; idx++) { Impulse& i = activeImpulses[idx]; @@ -192,7 +192,7 @@ const <span class="code_keyword">int32</span> NUM_IMPULSES = 4; velocity += (acceleration * impulseDtSeconds); position += (velocity * deltaTimeSeconds); - // Cleanup any impulses that have expired in the mean time + <span class="code_comment">// Cleanup any impulses that have expired in the mean time</span> for (int32 idx = 0; idx < numImpulses; idx++) { if (activeImpulses[idx].isDead) { for (int j = idx + 1; j < numImpulses; j++) { |