--- trunk/src/primitives/StuntDouble.cpp 2005/04/15 22:04:00 507 +++ trunk/src/primitives/StuntDouble.cpp 2008/10/21 18:23:31 1309 @@ -52,16 +52,18 @@ namespace oopse { StuntDouble::StuntDouble(ObjectType objType, DataStoragePointer storage) : objType_(objType), storage_(storage), snapshotMan_(NULL), - linear_(false), linearAxis_(-1), globalIndex_(-1), localIndex_(-1){ + linear_(false), linearAxis_(-1), globalIndex_(-1), localIndex_(-1), + globalIntegrableObjectIndex_(-1){ } StuntDouble::~StuntDouble() { } - void StuntDouble::zeroForcesAndTorques() { + void StuntDouble::zeroForcesAndTorques() { setFrc(V3Zero); setTrq(V3Zero); + setParticlePot(0.0); } void StuntDouble::addProperty(GenericData* genData) { properties_.addProperty(genData);