fix Entities.hasBlockingInside
This commit is contained in:
@@ -57,6 +57,10 @@ struct Hitbox {
|
||||
bool crouching = false;
|
||||
|
||||
Hitbox(BodyType type, glm::vec3 position, glm::vec3 halfsize);
|
||||
|
||||
AABB getAABB() const {
|
||||
return AABB(position-halfsize, position+halfsize);
|
||||
}
|
||||
};
|
||||
|
||||
#endif // PHYSICS_HITBOX_HPP_
|
||||
|
||||
Reference in New Issue
Block a user