more logging stuff
This commit is contained in:
@@ -320,10 +320,13 @@ namespace Game
|
||||
TileHandles[i] = level.PuzzleTiles.New();
|
||||
auto& tile = level.PuzzleTiles.Get(TileHandles[i]);
|
||||
tile.EData.MaterialHandle = EMaterial::Default;
|
||||
tile.EData.Visible = false;
|
||||
|
||||
UIPlacedCards[i] = level.UIQuads.New();
|
||||
auto& quad = level.UIQuads.Get(UIPlacedCards[i]);
|
||||
quad.EData.ModelH = GameRendering::Get().GetModelHandleFromPath("models/plane.glb");
|
||||
quad.EData.MaterialHandle = EMaterial::Default;
|
||||
quad.EData.Visible = false;
|
||||
}
|
||||
IsSetup = true;
|
||||
LOG("finished setup!");
|
||||
@@ -361,8 +364,10 @@ namespace Game
|
||||
tile.EData.Transform.SetPosition(cardPos);
|
||||
bx::mtxRotateY(tile.EData.Transform.Rotation.M, card.Rotation * bx::kPi * 0.5f);
|
||||
|
||||
Vec3 fw = {0, 0, 0};
|
||||
Vec3 pos = {camTransform.Position.x, camTransform.Position.y, camTransform.Position.z};
|
||||
Mat4 tp = camTransform.M.Transpose();
|
||||
Vec3 fw = {tp.M[8], tp.M[9], tp.M[10]};
|
||||
Vec3 pos = camTransform.GetPosition() * -1;
|
||||
pos += fw;
|
||||
quad.EData.Transform.SetPosition(pos);
|
||||
quad.EData.Transform.Rotation = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user