Go to the documentation of this file.
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;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
bool has_collider(int n) const
Returns true if the nth collider in the LevelState is still part of the level.
bool any_in_bounds()
Checks the bounding volume of the current node against each of our colliders.
static bool has_max_colliders()
Returns true if there is any the maximum number of colliders that may be added to the CollisionLevelS...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
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...
static int get_max_colliders()
Returns the maximum number of colliders that may be added to the CollisionLevelStateBase at any one t...
This class manages the traversal through the scene graph to detect collisions.
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.