PhysicsObjectCollection
from panda3d.physics import PhysicsObjectCollection
- class PhysicsObjectCollection
Bases:
DTOOL_SUPER_BASE
This is a set of zero or more PhysicsObjects. It’s handy for returning from functions that need to return multiple PhysicsObjects.
Inheritance diagram
- __init__(*args, **kwargs)
- addPhysicsObject()
C++ Interface: add_physics_object(const PhysicsObjectCollection self, PhysicsObject physics_object)
- /**
Adds a new PhysicsObject to the collection.
*/
- addPhysicsObjectsFrom()
C++ Interface: add_physics_objects_from(const PhysicsObjectCollection self, const PhysicsObjectCollection other)
- /**
Adds all the PhysicsObjects indicated in the other collection to this
collection. The other physics_objects are simply appended to the end of
the physics_objects in this list; duplicates are not automatically removed.
*/
- add_physics_object()
C++ Interface: add_physics_object(const PhysicsObjectCollection self, PhysicsObject physics_object)
- /**
Adds a new PhysicsObject to the collection.
*/
- add_physics_objects_from()
C++ Interface: add_physics_objects_from(const PhysicsObjectCollection self, const PhysicsObjectCollection other)
- /**
Adds all the PhysicsObjects indicated in the other collection to this
collection. The other physics_objects are simply appended to the end of
the physics_objects in this list; duplicates are not automatically removed.
*/
- assign()
C++ Interface: assign(const PhysicsObjectCollection self, const PhysicsObjectCollection copy)
- clear()
C++ Interface: clear(const PhysicsObjectCollection self)
- /**
Removes all PhysicsObjects from the collection.
*/
- getNumPhysicsObjects()
C++ Interface: get_num_physics_objects(PhysicsObjectCollection self)
- /**
Returns the number of PhysicsObjects in the collection.
*/
- getPhysicsObject()
C++ Interface: get_physics_object(PhysicsObjectCollection self, int index)
- /**
Returns the nth PhysicsObject in the collection.
*/
- getPhysicsObjects()
- get_num_physics_objects()
C++ Interface: get_num_physics_objects(PhysicsObjectCollection self)
- /**
Returns the number of PhysicsObjects in the collection.
*/
- get_physics_object()
C++ Interface: get_physics_object(PhysicsObjectCollection self, int index)
- /**
Returns the nth PhysicsObject in the collection.
*/
- get_physics_objects()
- hasPhysicsObject()
C++ Interface: has_physics_object(PhysicsObjectCollection self, PhysicsObject physics_object)
- /**
Returns true if the indicated PhysicsObject appears in this collection,
false otherwise.
*/
- has_physics_object()
C++ Interface: has_physics_object(PhysicsObjectCollection self, PhysicsObject physics_object)
- /**
Returns true if the indicated PhysicsObject appears in this collection,
false otherwise.
*/
- isEmpty()
C++ Interface: is_empty(PhysicsObjectCollection self)
- /**
Returns true if there are no PhysicsObjects in the collection, false
otherwise.
*/
- is_empty()
C++ Interface: is_empty(PhysicsObjectCollection self)
- /**
Returns true if there are no PhysicsObjects in the collection, false
otherwise.
*/
- output()
C++ Interface: output(PhysicsObjectCollection self, ostream out)
- /**
Writes a brief one-line description of the PhysicsObjectCollection to the
indicated output stream.
*/
- removeDuplicatePhysicsObjects()
C++ Interface: remove_duplicate_physics_objects(const PhysicsObjectCollection self)
- /**
Removes any duplicate entries of the same PhysicsObjects on this
collection. If a PhysicsObject appears multiple times, the first
appearance is retained; subsequent appearances are removed.
*/
- removePhysicsObject()
C++ Interface: remove_physics_object(const PhysicsObjectCollection self, PhysicsObject physics_object)
- /**
Removes the indicated PhysicsObject from the collection. Returns true if
the physics_object was removed, false if it was not a member of the
collection.
*/
- removePhysicsObjectsFrom()
C++ Interface: remove_physics_objects_from(const PhysicsObjectCollection self, const PhysicsObjectCollection other)
- /**
Removes from this collection all of the PhysicsObjects listed in the other
collection.
*/
- remove_duplicate_physics_objects()
C++ Interface: remove_duplicate_physics_objects(const PhysicsObjectCollection self)
- /**
Removes any duplicate entries of the same PhysicsObjects on this
collection. If a PhysicsObject appears multiple times, the first
appearance is retained; subsequent appearances are removed.
*/
- remove_physics_object()
C++ Interface: remove_physics_object(const PhysicsObjectCollection self, PhysicsObject physics_object)
- /**
Removes the indicated PhysicsObject from the collection. Returns true if
the physics_object was removed, false if it was not a member of the
collection.
*/