| 34 |
|
|
| 35 |
|
namespace oopse { |
| 36 |
|
|
| 37 |
< |
StuntDouble::StuntDouble() : |
| 37 |
> |
StuntDouble::StuntDouble(ObjectType objType, DataStoragePointer storage) : |
| 38 |
> |
objType_(objType), storage_(storage), |
| 39 |
|
linear_(false), linearAxis_(-1), globalIndex_(-1), localIndex_(-1), snapshotMan_(NULL){ |
| 40 |
|
} |
| 41 |
|
|
| 43 |
|
|
| 44 |
|
} |
| 45 |
|
|
| 46 |
+ |
void StuntDouble::zeroForces() { |
| 47 |
+ |
setFrc(V3Zero); |
| 48 |
+ |
} |
| 49 |
|
void StuntDouble::addProperty(GenericData* genData) { |
| 50 |
< |
properties.addProperty(genData); |
| 50 |
> |
properties_.addProperty(genData); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
void StuntDouble::removeProperty(std::string& propName) { |
| 54 |
< |
properties.removeProperty(); |
| 54 |
> |
properties_.removeProperty(propName); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
void StuntDouble::clearProperties() { |
| 58 |
< |
properties.clearProperties(); |
| 58 |
> |
properties_.clearProperties(); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
std::vector<std::string> StuntDouble::getPropertyNames() { |
| 62 |
< |
return properties.getPropertyNames(); |
| 62 |
> |
return properties_.getPropertyNames(); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
std::vector<GenericData*> StuntDouble::getProperties() { |
| 66 |
< |
return properties.getProperties(); |
| 66 |
> |
return properties_.getProperties(); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
< |
GenericData* StuntDouble::getPropertyByName(std:string& propName) { |
| 70 |
< |
return properties.getPropertyByName(propName); |
| 69 |
> |
GenericData* StuntDouble::getPropertyByName(std::string& propName) { |
| 70 |
> |
return properties_.getPropertyByName(propName); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
|