This is the state information the CollisionTraverser retains for each level during traversal.
More...
#include "collisionLevelStateBase.h"
This is the state information the CollisionTraverser retains for each level during traversal.
The CollisionLevelStateBase is the non-template base class. The template version further specifies this on CurrentMask type.
Definition at line 43 of file collisionLevelStateBase.h.
◆ CollisionLevelStateBase() [1/3]
CollisionLevelStateBase::CollisionLevelStateBase |
( |
const NodePath & |
node_path | ) |
|
|
inline |
◆ CollisionLevelStateBase() [2/3]
◆ CollisionLevelStateBase() [3/3]
◆ clear()
void CollisionLevelStateBase::clear |
( |
| ) |
|
◆ get_class_type()
static TypeHandle CollisionLevelStateBase::get_class_type |
( |
| ) |
|
|
inlinestatic |
◆ get_collider()
const CollisionSolid * CollisionLevelStateBase::get_collider |
( |
int |
n | ) |
const |
|
inline |
◆ get_collider_node()
CollisionNode * CollisionLevelStateBase::get_collider_node |
( |
int |
n | ) |
const |
|
inline |
◆ get_collider_node_path()
NodePath CollisionLevelStateBase::get_collider_node_path |
( |
int |
n | ) |
const |
|
inline |
◆ get_include_mask()
CollideMask CollisionLevelStateBase::get_include_mask |
( |
| ) |
const |
|
inline |
Returns the mask that is applied to the into CollideMask of nodes in the scene graph before testing for bits in common with the from CollideMask of colliders.
See set_include_mask().
Definition at line 167 of file collisionLevelStateBase.I.
◆ get_local_bound()
Returns the bounding volume of the indicated collider, transformed into the current node's transform space.
Definition at line 120 of file collisionLevelStateBase.I.
◆ get_node_path()
NodePath CollisionLevelStateBase::get_node_path |
( |
| ) |
const |
|
inline |
◆ get_num_colliders()
int CollisionLevelStateBase::get_num_colliders |
( |
| ) |
const |
|
inline |
◆ get_parent_bound()
Returns the bounding volume of the indicated collider, transformed into the previous node's transform space, but not transformed by the current node's transform.
This is appropriate for testing against the bounding volume of the current node (which does not have its own transform applied to it).
Definition at line 138 of file collisionLevelStateBase.I.
◆ init_type()
static void CollisionLevelStateBase::init_type |
( |
| ) |
|
|
inlinestatic |
◆ node()
PandaNode * CollisionLevelStateBase::node |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ prepare_collider()
void CollisionLevelStateBase::prepare_collider |
( |
const ColliderDef & |
def, |
|
|
const NodePath & |
root |
|
) |
| |
◆ reserve()
void CollisionLevelStateBase::reserve |
( |
int |
num_colliders | ) |
|
◆ set_include_mask()
void CollisionLevelStateBase::set_include_mask |
( |
CollideMask |
include_mask | ) |
|
|
inline |
Specifies the mask that is applied to the into CollideMask of nodes in the scene graph before testing for bits in common with the from CollideMask of colliders.
This is normally all bits on, but you may set it to some other mask to restrict certain bits from consideration.
This is used by the CollisionTraverser to restrict collision with geometry except under the lowest level of LOD.
Definition at line 156 of file collisionLevelStateBase.I.
◆ CollisionTraverser
The documentation for this class was generated from the following files: