19 INLINE
void ForceNode::
21 _forces.erase(_forces.begin(), _forces.end());
29 get_force(
int index)
const {
30 nassertr(index >= 0 && index < (
int)_forces.size(),
32 return _forces[index];
39 INLINE
int ForceNode::
40 get_num_forces()
const {
41 return _forces.size();
48 INLINE
void ForceNode::
50 _forces.push_back(force);
51 force->_force_node =
this;
52 force->_force_node_path =
NodePath(
this);
pure virtual base class for all forces that could POSSIBLY exist.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...