摄像机系统,和子对象绑定

This commit is contained in:
ArchZer0
2026-08-17 16:15:05 +08:00
parent 63d97f058a
commit 7b7756f0fe
20 changed files with 744 additions and 132 deletions
+5
View File
@@ -21,11 +21,14 @@ struct MeshConfig {
struct ActorConfig {
std::string name;
std::string type = "actor";
std::string init_function;
std::string tick_function;
std::array<float, 2> position{0.0F, 0.0F};
std::array<float, 2> facing{1.0F, 0.0F};
float zoom = 1.0F;
MeshConfig mesh;
std::vector<ActorConfig> children;
};
struct InputBindingConfig {
@@ -38,6 +41,8 @@ struct SceneConfig {
std::string name;
std::string path;
std::vector<ActorConfig> actors;
std::string default_camera;
bool grid_background = false;
};
struct GameConfig {