@@ -66,13 +66,13 @@ class Material {
66
66
// / Return the bounciness
67
67
decimal getBounciness () const ;
68
68
69
- // / Set the bounciness
69
+ // / Set the bounciness.
70
70
void setBounciness (decimal bounciness);
71
71
72
72
// / Return the friction coefficient
73
73
decimal getFrictionCoefficient () const ;
74
74
75
- // / Set the friction coefficient
75
+ // / Set the friction coefficient.
76
76
void setFrictionCoefficient (decimal frictionCoefficient);
77
77
78
78
// / Overloaded assignment operator
@@ -84,7 +84,9 @@ inline decimal Material::getBounciness() const {
84
84
return mBounciness ;
85
85
}
86
86
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.
88
90
inline void Material::setBounciness (decimal bounciness) {
89
91
assert (bounciness >= decimal (0.0 ) && bounciness <= decimal (1.0 ));
90
92
mBounciness = bounciness;
@@ -95,7 +97,9 @@ inline decimal Material::getFrictionCoefficient() const {
95
97
return mFrictionCoefficient ;
96
98
}
97
99
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.
99
103
inline void Material::setFrictionCoefficient (decimal frictionCoefficient) {
100
104
assert (frictionCoefficient >= decimal (0.0 ));
101
105
mFrictionCoefficient = frictionCoefficient;
0 commit comments