54 return _from_collide_mask;
80 mark_internal_bounds_stale();
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());
125 mark_internal_bounds_stale();
136 nassertv(n >= 0 && n < get_num_solids());
137 _solids.erase(_solids.begin() + n);
138 mark_internal_bounds_stale();
151 mark_internal_bounds_stale();
152 return _solids.size() - 1;
163 return _collider_sort;
185 _collider_sort = sort;
196 return default_collision_node_collide_mask;
CollideMask get_into_collide_mask() const
Returns the "into" collide mask for this node.
CollideMask get_into_collide_mask() const
Returns the current "into" CollideMask.
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).
int get_collider_sort() const
Returns the collider_sort value that has been set for this particular node.
CollideMask get_from_collide_mask() const
Returns the current "from" CollideMask.
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.
int add_solid(const CollisionSolid *solid)
Adds the indicated solid to the node.
void remove_solid(int n)
Removes the solid with the indicated index.
void set_from_collide_mask(CollideMask mask)
Sets the "from" CollideMask.