24DeferredNodeProperty() {
34 _from_collide_mask(copy._from_collide_mask),
35 _into_collide_mask(copy._into_collide_mask)
42void 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) {
A node in the scene graph that can hold any number of CollisionSolids.
set_into_collide_mask
Sets the "into" CollideMask.
set_from_collide_mask
Sets the "from" CollideMask.
This class keeps track of all the state we must make note of during the graph traversal,...
void compose(const DeferredNodeProperty &other)
Composes this state with the next one encountered on a lower node during the apply traversal.
void apply_to_node(PandaNode *node)
Applies whatever state is appropriate to the node.
A basic node of the scene graph or data graph.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.