54 return _from_collide_mask;
88 INLINE
int CollisionNode::
89 get_num_solids()
const {
90 return _solids.size();
99 get_solid(
int n)
const {
100 nassertr(n >= 0 && n < get_num_solids(), NULL);
101 return _solids[n].get_read_pointer();
110 modify_solid(
int n) {
111 nassertr(n >= 0 && n < get_num_solids(), NULL);
112 mark_internal_bounds_stale();
113 return _solids[n].get_write_pointer();
123 nassertv(n >= 0 && n < get_num_solids());
136 nassertv(n >= 0 && n < get_num_solids());
137 _solids.erase(_solids.begin() + n);
152 return _solids.size() - 1;
163 return _collider_sort;
185 _collider_sort = sort;
196 return default_collision_node_collide_mask;
void set_collide_mask(CollideMask mask)
Simultaneously sets both the "from" and "into" CollideMask values to the same thing.
The abstract base class for all things that can collide with other things in the world, and all the things they can collide with (except geometry).
CollideMask get_into_collide_mask() const
Returns the "into" collide mask for this node.
int get_collider_sort() const
Returns the collider_sort value that has been set for this particular node.
void mark_internal_bounds_stale(Thread *current_thread=Thread::get_current_thread())
Should be called by a derived class to mark the internal bounding volume stale, so that compute_inter...
void set_collider_sort(int sort)
Sets a particular collider_sort value on this node.
void set_into_collide_mask(CollideMask mask)
Sets the "into" CollideMask.
void set_into_collide_mask(CollideMask mask)
Sets the "into" CollideMask.
void clear_solids()
Removes all solids from the node.
static CollideMask get_default_collide_mask()
Returns the default into_collide_mask assigned to new CollisionNodes.
void set_solid(int n, CollisionSolid *solid)
Replaces the solid with the indicated index.
A node in the scene graph that can hold any number of CollisionSolids.
int add_solid(const CollisionSolid *solid)
Adds the indicated solid to the node.
CollideMask get_into_collide_mask() const
Returns the current "into" CollideMask.
CollideMask get_from_collide_mask() const
Returns the current "from" CollideMask.
void remove_solid(int n)
Removes the solid with the indicated index.
void set_from_collide_mask(CollideMask mask)
Sets the "from" CollideMask.