Go to the documentation of this file.
14 #ifndef COLLISIONLEVELSTATEBASE_H
15 #define COLLISIONLEVELSTATEBASE_H
59 void reserve(
int num_colliders);
65 INLINE
int get_num_colliders()
const;
69 INLINE
NodePath get_collider_node_path(
int n)
const;
84 BoundingVolumes _local_bounds;
85 BoundingVolumes _parent_bounds;
93 static void init_type() {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PandaNode * node() const
Returns the PandaNode pointer of the node we have traversed to.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
CollideMask get_include_mask() const
Returns the mask that is applied to the into CollideMask of nodes in the scene graph before testing f...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
NodePath get_node_path() const
Returns the NodePath representing the node instance we have traversed to.
This is a class designed to support low-overhead traversals of the complete scene graph,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
A lightweight class that represents a single element that may be timed and/or counted via stats.
The abstract base class for all things that can collide with other things in the world,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
const GeometricBoundingVolume * get_local_bound(int n) const
Returns the bounding volume of the indicated collider, transformed into the current node's transform ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void reserve(int num_colliders)
Indicates an intention to add the indicated number of colliders to the level state.
This class manages the traversal through the scene graph to detect collisions.
void prepare_collider(const ColliderDef &def, const NodePath &root)
Adds the indicated Collider to the set of Colliders in the current level state.
A basic node of the scene graph or data graph.
This is the state information the CollisionTraverser retains for each level during traversal.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void set_include_mask(CollideMask include_mask)
Specifies the mask that is applied to the into CollideMask of nodes in the scene graph before testing...
A node in the scene graph that can hold any number of CollisionSolids.
const GeometricBoundingVolume * get_parent_bound(int n) const
Returns the bounding volume of the indicated collider, transformed into the previous node's transform...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.