179 |
|
* @param pos new position |
180 |
|
*/ |
181 |
|
void setPos(const Vector3d& pos) { |
182 |
< |
((snapshotMan_->getCurrentSnapshot())->*storage_).position[localIndex_] = pos; |
182 |
> |
DataStorage& data = snapshotMan_->getCurrentSnapshot()->*storage_; |
183 |
> |
data.position[localIndex_] = pos; |
184 |
> |
//((snapshotMan_->getCurrentSnapshot())->*storage_).position[localIndex_] = pos; |
185 |
|
} |
186 |
|
|
187 |
|
/** |
191 |
|
* @see #getPos |
192 |
|
*/ |
193 |
|
void setPos(const Vector3d& pos, int snapshotNo) { |
194 |
+ |
|
195 |
|
((snapshotMan_->getSnapshot(snapshotNo))->*storage_).position[localIndex_] = pos; |
196 |
+ |
|
197 |
|
} |
198 |
|
|
199 |
|
/** |