17 INLINE
void PhysicalNode::
19 PhysicalsVector::iterator it;
20 for (it = _physicals.begin(); it != _physicals.end(); ++it) {
21 nassertd((*it)->_physical_node ==
this) continue;
22 (*it)->_physical_node =
nullptr;
24 _physicals.erase(_physicals.begin(), _physicals.end());
31 get_physical(
size_t index)
const {
32 nassertr(index < _physicals.size(),
nullptr);
33 return _physicals[index];
39 INLINE
size_t PhysicalNode::
40 get_num_physicals()
const {
41 return _physicals.size();
47 INLINE
void PhysicalNode::
49 _physicals.push_back(physical);
50 physical->_physical_node =
this;
Graph node that encapsulated a series of physical objects.
Defines a set of physically modeled attributes.