17 INLINE
void ForceNode::
19 _forces.erase(_forces.begin(), _forces.end());
26 get_force(
size_t index)
const {
27 nassertr(index < _forces.size(),
nullptr);
28 return _forces[index];
34 INLINE
size_t ForceNode::
35 get_num_forces()
const {
36 return _forces.size();
42 INLINE
void ForceNode::
44 _forces.push_back(force);
45 force->_force_node =
this;
46 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...