I guess I half ass fixed hitbox resolution

This commit is contained in:
2023-03-21 15:16:48 -07:00
parent 978c420046
commit 2bd6012297
4 changed files with 13 additions and 15 deletions

View File

@ -27,11 +27,14 @@ namespace Dawn {
auto hitbox = playerItem->addComponent<BoxCollider>();
playerItem->addComponent<CharacterController2D>();
auto wallItem = this->createSceneItem();
auto wallBox = wallItem->addComponent<BoxCollider>();
auto wallBox = this->createSceneItem()->addComponent<BoxCollider>();
wallBox->min = glm::vec2(-4, -3);
wallBox->max = glm::vec2(-3, 3);
auto wallBox2 = this->createSceneItem()->addComponent<BoxCollider>();
wallBox2->min = glm::vec2(-3, -4);
wallBox2->max = glm::vec2(3, -3);
camera = Camera::create(this);
camera->transform->lookAt(glm::vec3(10, 10, 10), glm::vec3(0, 0, 0));
// auto gameCamera = camera->item->addComponent<GameCamera>();