4 Node::Node(
int grid_x,
int grid_y, LVecBase3 pos,
float w,
float l,
float h) {
5 for(
int i = 0; i < 8; ++i) {
6 _neighbours[i] =
nullptr;
32 if(_position.get_x() - _width / 2 <= x && _position.get_x() + _width / 2 >= x &&
33 _position.get_y() - _length / 2 <= y && _position.get_y() + _length / 2 >= y) {
bool contains(float x, float y)
This is a handy function which returns true if the passed position is within the node's dimensions.