box2d:Box2D是游戏的2D物理引擎

  • g2_371429
    了解作者
  • 1.4MB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-11 11:01
    上传日期
建立状态 Box2D Box2D是用于游戏的2D物理引擎。 贡献 请不要提交具有新功能或核心库更改的拉取请求。 相反,请先提出问题进行讨论。 对于错误,我希望详细的错误报告胜于请求请求。 特征 碰撞 连续碰撞检测 联系人回调:开始,结束,预解决,后解决 凸多边形和圆形 每个身体多种形状 一键式接触歧管 动态树宽相 高效的配对管理 快速的Broadphase AABB查询 碰撞组和类别 物理 具有时间求解器的连续物理 持久的身体关节接触图 孤岛解决方案和睡眠管理 接触,摩擦和恢复原状 线性时间求解器可稳定堆叠 旋转,棱柱形,距离,皮带轮,齿轮,鼠标关节和其他关节类型 关节极限,电机和摩擦 动量解耦位置校正 相当精确的反作用力/脉冲 系统 小块和堆栈分配器 集中调整参数 高度可移植的C ++,无需使用STL容器 试验台 带有GLFW的OpenGL 使用imgui的图形用户界面 可扩展的测试
box2d-master.zip
内容介绍
![Box2D Logo](https://box2d.org/images/logo.svg) # Build Status [![Build Status](https://travis-ci.org/erincatto/box2d.svg?branch=master)](https://travis-ci.org/erincatto/box2d) # Box2D Box2D is a 2D physics engine for games. ## Contributing Please do not submit pull requests with new features or core library changes. Instead, please file an issue first for discussion. For bugs, I prefer detailed bug reports over pull requests. ## Features ### Collision - Continuous collision detection - Contact callbacks: begin, end, pre-solve, post-solve - Convex polygons and circles - Multiple shapes per body - One-shot contact manifolds - Dynamic tree broadphase - Efficient pair management - Fast broadphase AABB queries - Collision groups and categories ### Physics - Continuous physics with time of impact solver - Persistent body-joint-contact graph - Island solution and sleep management - Contact, friction, and restitution - Stable stacking with a linear-time solver - Revolute, prismatic, distance, pulley, gear, mouse joint, and other joint types - Joint limits, motors, and friction - Momentum decoupled position correction - Fairly accurate reaction forces/impulses ### System - Small block and stack allocators - Centralized tuning parameters - Highly portable C++ with no use of STL containers ### Testbed - OpenGL with GLFW - Graphical user interface with imgui - Extensible test framework - Support for loading world dumps ## Building - Install [CMake](https://cmake.org/) - Ensure CMake is in the user `PATH` - Visual Studio: run `build.bat` from the command prompt - Otherwise: run `build.sh` from a bash shell - Results are in the build sub-folder - On Windows you can open box2d.sln ## Building Box2D - Using vcpkg You can download and install Box2D using the [vcpkg](https://github.com/Microsoft/vcpkg) dependency manager: - git clone https://github.com/Microsoft/vcpkg.git - cd vcpkg - ./bootstrap-vcpkg.sh - ./vcpkg integrate install - ./vcpkg install box2d The Box2D port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository. Note: vcpkg support is not provided by the Box2D project ## Building for Xcode - Install [CMake](https://cmake.org) - Add Cmake to the path in .zprofile (the default Terminal shell is zsh) - export PATH="/Applications/CMake.app/Contents/bin:$PATH" - mkdir build - cd build - cmake -G Xcode .. - open box2d.xcodeproj - Select the testbed scheme - Edit the scheme to set a custom working directory, make this be in box2d/testbed - You can now build and run the testbed ## Installing using CMake You can use the CMake install feature to deploy the library to a central location that can be accessed using: ``` find_package(box2d REQUIRED) target_link_libraries(mytarget PRIVATE box2d) ``` You can build and install the library and docs using this command sequence (requires Doxygen): ``` mkdir build cd build cmake -DBOX2D_BUILD_DOCS=ON .. cmake --build . cmake --build . --target INSTALL ``` On Windows this tries to install in `Program Files` and thus requires admin privileges. Alternatively you can target another directory using something like this: ``` mkdir build cd build cmake -DBOX2D_BUILD_DOCS=ON -DCMAKE_INSTALL_PREFIX="C:/packages" .. cmake --build . cmake --build . --target INSTALL ``` ## Documentation - [Manual](https://box2d.org/documentation/) - [reddit](https://www.reddit.com/r/box2d/) - [Discord](https://discord.gg/NKYgCBP) ## License Box2D is developed by Erin Catto, and uses the [MIT license](https://en.wikipedia.org/wiki/MIT_License). ## Sponsorship Support development of Box2D through [Github Sponsors](https://github.com/sponsors/erincatto)
评论
    相关推荐
    • 容器
      容器接口 该存储库包含与相关的所有接口 。 请注意,这不是自己的Container实现。 仅仅是抽象描述了依赖注入容器的组件。 可安装的和在Packagist上列出。
    • 容器管理
      容器管理Shell脚本 TL; DR 一种podman docker-compose和类似工具的podman ,但主要针对podman ,由学生在空闲时间编写,用于在单个主机上运行开发或其他非生产容器。 详细说明 什么? 我编写的用于管理容器的一堆...
    • nnoops容器
      value_sorted_map
    • kcontianer容器
      kcontianer容器
    • 压力容器管理
      压力容器管理具有很重要的作用,一份合理的制度能够提供团队的凝聚力与向上力,需要压力容器管理的朋友可...该文档为压力容器管理,是一份很不错的参考资料,具有较高参考价值,感兴趣的可以下载看看
    • DiscordBot容器
      DiscordBot容器
    • 容器tiddlywiki
      容器tiddlywiki
    • tomcat容器
      Web容器
    • 奇异容器
      用于Singularity容器的食谱,该食谱位于上的SingularityHub中
    • 容器代码
      简单事务容器的代码