23 DeferredNodeProperty::
24 DeferredNodeProperty() {
31 DeferredNodeProperty::
34 _from_collide_mask(copy._from_collide_mask),
35 _into_collide_mask(copy._into_collide_mask)
42 void DeferredNodeProperty::
45 _from_collide_mask = copy._from_collide_mask;
46 _into_collide_mask = copy._into_collide_mask;
55 _flags |= other._flags;
57 if ((other._flags & F_has_from_collide_mask) != 0) {
58 _from_collide_mask = other._from_collide_mask;
61 if ((other._flags & F_has_into_collide_mask) != 0) {
62 _into_collide_mask = other._into_collide_mask;
71 if (node->
is_of_type(CollisionNode::get_class_type())) {
73 if ((_flags & F_has_from_collide_mask) != 0) {
76 if ((_flags & F_has_into_collide_mask) != 0) {
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A basic node of the scene graph or data graph.
This class keeps track of all the state we must make note of during the graph traversal, but cannot apply immediately.
set_into_collide_mask
Sets the "into" CollideMask.
void apply_to_node(PandaNode *node)
Applies whatever state is appropriate to the node.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
set_from_collide_mask
Sets the "from" CollideMask.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void compose(const DeferredNodeProperty &other)
Composes this state with the next one encountered on a lower node during the apply traversal...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A node in the scene graph that can hold any number of CollisionSolids.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.