14 #ifndef COLLISIONLEVELSTATE_H 15 #define COLLISIONLEVELSTATE_H 32 template<
class MaskType>
54 INLINE
bool has_any_collider()
const;
56 INLINE
void omit_collider(
int n);
64 typedef MaskType CurrentMask;
A basic node of the scene graph or data graph.
This is the state information the CollisionTraverser retains for each level during traversal.
bool has_collider(int n) const
Returns true if the nth collider in the LevelState is still part of the level.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool any_in_bounds()
Checks the bounding volume of the current node against each of our colliders.
void prepare_collider(const ColliderDef &def, const NodePath &root)
Adds the indicated Collider to the set of Colliders in the current level state.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static bool has_max_colliders()
Returns true if there is any the maximum number of colliders that may be added to the CollisionLevelS...
This class manages the traversal through the scene graph to detect collisions.
This is the state information the CollisionTraverser retains for each level during traversal.
bool apply_transform()
Applies the inverse transform from the current node, if any, onto all the colliders in the level stat...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
static int get_max_colliders()
Returns the maximum number of colliders that may be added to the CollisionLevelStateBase at any one t...