|
@@ -20,6 +20,7 @@ TypeHandle OdeMass::_type_handle;
|
|
|
OdeMass::
|
|
OdeMass::
|
|
|
OdeMass() :
|
|
OdeMass() :
|
|
|
_mass() {
|
|
_mass() {
|
|
|
|
|
+ dMassSetZero(&_mass);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
OdeMass::
|
|
OdeMass::
|
|
@@ -52,12 +53,10 @@ operator = (const OdeMass ©) {
|
|
|
|
|
|
|
|
void OdeMass::
|
|
void OdeMass::
|
|
|
write(ostream &out, unsigned int indent) const {
|
|
write(ostream &out, unsigned int indent) const {
|
|
|
- #ifndef NDEBUG //[
|
|
|
|
|
out.width(indent);
|
|
out.width(indent);
|
|
|
out << get_type() \
|
|
out << get_type() \
|
|
|
<< "(mag = " << get_magnitude() \
|
|
<< "(mag = " << get_magnitude() \
|
|
|
<< ", center = " << get_center() \
|
|
<< ", center = " << get_center() \
|
|
|
<< ", inertia = " << get_inertial_tensor() \
|
|
<< ", inertia = " << get_inertial_tensor() \
|
|
|
<< ")";
|
|
<< ")";
|
|
|
- #endif //] NDEBUG
|
|
|
|
|
}
|
|
}
|