diff --git a/main.cpp b/main.cpp index 37a63314..8a70cd8a 100644 --- a/main.cpp +++ b/main.cpp @@ -254,7 +254,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi staticMeshComponent.Render(commandList); DirectX::XMMATRIX bboxScale = DirectX::XMMatrixScaling(bboxSize[0], bboxSize[1], bboxSize[2]); - DirectX::XMMATRIX bboxTranslate = DirectX::XMMatrixTranslation(bboxCenter[0], bboxCenter[1], bboxCenter[2]); + DirectX::XMMATRIX bboxTranslate = DirectX::XMMatrixTranslation(0.0f, 0.0f, 80.0f); DirectX::XMMATRIX bboxModel = bboxScale * bboxTranslate; DirectX::XMMATRIX bboxViewProj = bboxModel * viewMatrix * projectionMatrix; DirectX::XMFLOAT4X4 bboxViewProjMat;