17INLINE
void PhysicalNode::
19 for (
Physical *physical : _physicals) {
20 nassertd(physical->_physical_node ==
this) continue;
21 physical->_physical_node =
nullptr;
30get_physical(
size_t index)
const {
31 nassertr(index < _physicals.size(),
nullptr);
32 return _physicals[index];
38INLINE
size_t PhysicalNode::
39get_num_physicals()
const {
40 return _physicals.size();
49 if (physical->_physical_node !=
this) {
50 nassertv(physical->_physical_node ==
nullptr);
51 _physicals.push_back(physical);
52 physical->_physical_node =
this;
Graph node that encapsulated a series of physical objects.
void add_physical(Physical *physical)
Adds a Physical to this PhysicalNode.
Defines a set of physically modeled attributes.