I guess I half ass fixed hitbox resolution
This commit is contained in:
@ -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>();
|
||||
|
Reference in New Issue
Block a user