Skip to content

Dev#223

Merged
gameknife merged 52 commits intomainfrom
dev
Jan 21, 2026
Merged

Dev#223
gameknife merged 52 commits intomainfrom
dev

Conversation

@gameknife
Copy link
Owner

No description provided.

gameknife and others added 30 commits January 18, 2026 00:12
- add rig.glb for test
- engine shutdown / start circle in single process
- Introduced `src/Runtime/NextPhysicsTypes.h` to define `Next*` physics types (aliases to Jolt types or dummy structs).
- Updated `src/Runtime/NextPhysics.h/cpp` to use `NextPhysicsTypes.h`.
- Updated `src/Assets/Scene.hpp/cpp` to use `NextPhysicsTypes.h` and remove direct Jolt includes.
- Guarded Jolt-specific implementation details with `#if WITH_PHYSIC`.
- Ensured `NextPhysics` interface remains consistent regardless of `WITH_PHYSIC` setting.
- Introduced `src/Runtime/NextPhysicsTypes.h` to define `Next*` physics types (aliases to Jolt types or dummy structs).
- Updated `src/Runtime/NextPhysics.h/cpp` to use `NextPhysicsTypes.h`.
- Updated `src/Assets/Scene.hpp/cpp` to use `NextPhysicsTypes.h` and remove direct Jolt includes.
- Guarded Jolt-specific implementation details with `#if WITH_PHYSIC`.
- Ensured `NextPhysics` interface remains consistent regardless of `WITH_PHYSIC` setting.
- Fixed compilation issues by ensuring `MeshShape.h` is included when `WITH_PHYSIC` is enabled.
…05888870917794659

Refactor physics system to fully decouple Jolt dependency
@gemini-code-assist
Copy link

Summary of Changes

Hello @gameknife, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

本次拉取请求对引擎的核心架构进行了重大改进,通过引入组件化系统,极大地提升了 Node 类的模块化和可扩展性。同时,集成了 glTF 骨骼动画支持,为引擎带来了更丰富的动态内容表现能力。此外,音频和脚本引擎被重构为独立的模块,进一步优化了代码组织和维护性。

Highlights

  • glTF 骨骼动画支持: 引入了 glTF 骨骼动画的加载、GPU 蒙皮计算着色器、以及光线追踪加速结构更新,为引擎带来了更丰富的动态内容表现能力。
  • 节点组件化重构: Node 类被重构为基于组件的架构,渲染和物理属性被抽象到独立的 RenderComponent 和 PhysicsComponent 中,并集成了 SkinnedMeshComponent,极大地提升了模块化和可扩展性。
  • 音频引擎独立化: 音频功能被封装到新的 NextAudio 类中,提高了模块化和代码组织。
  • QuickJS 引擎独立化: QuickJS 脚本引擎被封装到新的 QuickJSEngine 类中,并支持 TypeScript 编译,进一步优化了代码组织和维护性。
  • 物理引擎类型抽象: 引入 NextPhysicsTypes.h 抽象 Jolt Physics 的类型,以支持物理功能的条件编译。
  • Agent 指引更新: AGENT_GUIDE 目录下的文档进行了大量更新和重组,以反映项目的新架构和开发流程,并移除了旧的 AGENTS.md 和 AGENT_GUIDE/README.md 文件。
  • 构建系统改进与单元测试: CMake 新增了 GK_ENABLE_AUDIO 选项,并更新了 VSCode 设置以排除构建相关目录。同时,为组件系统、glTF 蒙皮加载和物理组件添加了新的单元测试。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a significant refactoring to a component-based architecture for Node objects, adds comprehensive glTF skinned animation support, and improves code organization by encapsulating engine functionalities into dedicated helper and manager classes. The changes also include updated agent guidance documentation and new unit tests for the component system, physics, and glTF skinning. Overall, the changes enhance modularity, extend engine capabilities, and improve maintainability.

@gameknife gameknife merged commit c48c8a9 into main Jan 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant