mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
*** empty log message ***
This commit is contained in:
parent
dfa0b0c9fa
commit
b0b30ad602
@ -75,6 +75,21 @@ add_physicals_from(const PhysicalNode &other) {
|
||||
(*last)->_physical_node = this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function : remove_physical
|
||||
// Access : public
|
||||
// Description : remove operation
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void PhysicalNode::
|
||||
remove_physical(Physical *physical) {
|
||||
vector< PT(Physical) >::iterator found;
|
||||
PT(Physical) ptp = physical;
|
||||
found = find(_physicals.begin(), _physicals.end(), ptp);
|
||||
if (found == _physicals.end())
|
||||
return;
|
||||
_physicals.erase(found);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function : remove_physical
|
||||
// Access : public
|
||||
|
@ -39,6 +39,7 @@ PUBLISHED:
|
||||
INLINE void add_physical(Physical *physical);
|
||||
|
||||
void add_physicals_from(const PhysicalNode &other);
|
||||
void remove_physical(Physical *physical);
|
||||
void remove_physical(int index);
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user