*** empty log message ***

This commit is contained in:
Mike Goslin 2001-01-26 20:17:57 +00:00
parent c49b34ba44
commit dfa0b0c9fa
2 changed files with 16 additions and 0 deletions

View File

@ -75,6 +75,21 @@ add_forces_from(const ForceNode &other) {
(*last)->_force_node = this;
}
////////////////////////////////////////////////////////////////////
// Function : remove_force
// Access : public
// Description : remove operation
////////////////////////////////////////////////////////////////////
void ForceNode::
remove_force(BaseForce *f) {
vector< PT(BaseForce) >::iterator found;
PT(BaseForce) ptbf = f;
found = find(_forces.begin(), _forces.end(), ptbf);
if (found == _forces.end())
return;
_forces.erase(found);
}
////////////////////////////////////////////////////////////////////
// Function : remove_force
// Access : public

View File

@ -38,6 +38,7 @@ PUBLISHED:
INLINE void add_force(BaseForce *force);
void add_forces_from(const ForceNode &other);
void remove_force(BaseForce *f);
void remove_force(int index);
public: