@@ -66,13 +66,13 @@ class Material {
6666 // / Return the bounciness
6767 decimal getBounciness () const ;
6868
69- // / Set the bounciness
69+ // / Set the bounciness.
7070 void setBounciness (decimal bounciness);
7171
7272 // / Return the friction coefficient
7373 decimal getFrictionCoefficient () const ;
7474
75- // / Set the friction coefficient
75+ // / Set the friction coefficient.
7676 void setFrictionCoefficient (decimal frictionCoefficient);
7777
7878 // / Overloaded assignment operator
@@ -84,7 +84,9 @@ inline decimal Material::getBounciness() const {
8484 return mBounciness ;
8585}
8686
87- // Set the bounciness
87+ // Set the bounciness.
88+ // / The bounciness should be a value between 0 and 1. The value 1 is used for a
89+ // / very bouncy body and zero is used for a body that is not bouncy at all.
8890inline void Material::setBounciness (decimal bounciness) {
8991 assert (bounciness >= decimal (0.0 ) && bounciness <= decimal (1.0 ));
9092 mBounciness = bounciness;
@@ -95,7 +97,9 @@ inline decimal Material::getFrictionCoefficient() const {
9597 return mFrictionCoefficient ;
9698}
9799
98- // Set the friction coefficient
100+ // Set the friction coefficient.
101+ // / The friction coefficient has to be a positive value. The value zero is used for no
102+ // / friction at all.
99103inline void Material::setFrictionCoefficient (decimal frictionCoefficient) {
100104 assert (frictionCoefficient >= decimal (0.0 ));
101105 mFrictionCoefficient = frictionCoefficient;
0 commit comments