/LGC物理引擎/Box2D:一个 2D rigid body 物理引擎
2010-12-29 09:13
633 查看
Box2D:一个 2D rigid body 物理引擎
作者:
刘鹏
日期:
2009-03-09
Box2D 是一个2D rigid body 物理引擎,本文介绍了它的基本情况、主要特色以及使用 Box2D 开发程序的基本思路。
2D rigid body 是一个不会变形的物体,它具有质量和惯性。它的状态由重心和旋转角度决定。它的动态移动由线速度和角速度控制。3
Box2D 已在多个游戏中使用,包括 Crayon Physics Deluxe
,该游戏赢得了 2008 Independent Game Festival Grand Prize。
Box2D 已经移植到 Flash、Java、C#、Python、JavaScript、D 和具有定点数运算能力的嵌入式设备上。
Features1
Collision
Continuous collision detection.
Contact callbacks: add, persist, remove.
Convex polyons and circles.
Multiple shapes per body
One-shot contact manifolds
Incremental sweep-and-prune broadphase
Efficient pair management
Fast broadphase AABB queries
Collision groups and categories
Physics
Continuous physics with time of impact island 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, and mouse joints
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
create a Ground Box
Create a Dynamic Body
Simulating the World
time step is 60Hz 或者 1/60 秒
integrator,在离散时间点模拟物理方程
simulation loop : call b2World::Step.
细节内容可以参考 box2d manual 中的 helloworld 例子,http://www.box2d.org/manual.html#d0e110
。
2. box2d wiki
3. Rigid Body
4. box2d manual
作者:
刘鹏
日期:
2009-03-09
Box2D 是一个2D rigid body 物理引擎,本文介绍了它的基本情况、主要特色以及使用 Box2D 开发程序的基本思路。
Overview
Box2D 是一个功能丰富的 2D rigid body 物理引擎,基于 C++ 开发,作者是 Erin Catto。使用 Box2D,开发人员可以使对象运动时具有物理效果,如惯性、自由落体、碰撞等等。2D rigid body 是一个不会变形的物体,它具有质量和惯性。它的状态由重心和旋转角度决定。它的动态移动由线速度和角速度控制。3
Box2D 已在多个游戏中使用,包括 Crayon Physics Deluxe
,该游戏赢得了 2008 Independent Game Festival Grand Prize。
Box2D 已经移植到 Flash、Java、C#、Python、JavaScript、D 和具有定点数运算能力的嵌入式设备上。
Features1
CollisionContinuous collision detection.
Contact callbacks: add, persist, remove.
Convex polyons and circles.
Multiple shapes per body
One-shot contact manifolds
Incremental sweep-and-prune broadphase
Efficient pair management
Fast broadphase AABB queries
Collision groups and categories
Physics
Continuous physics with time of impact island 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, and mouse joints
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
Box2D 开发基本思路
create a worldcreate a Ground Box
Create a Dynamic Body
Simulating the World
time step is 60Hz 或者 1/60 秒
integrator,在离散时间点模拟物理方程
simulation loop : call b2World::Step.
细节内容可以参考 box2d manual 中的 helloworld 例子,http://www.box2d.org/manual.html#d0e110
。
Reference
1. Box2D Features2. box2d wiki
3. Rigid Body
4. box2d manual
相关文章推荐
- 关于2d物理引擎box2d与ape的评论
- HTML5之2D物理引擎 Box2D for javascript Games 系列 第一部分
- 【技术讨论】从弹弹堂说起,如何用2D物理引擎编写一个游戏<一>2011-11-05 10:36
- [cocos2d-x学习笔记][入门基础]Box-2d物理引擎的使用02制作一个简易的愤怒小鸟Demo
- HTML5之2D物理引擎 Box2D for javascript Games 系列 第二部分
- Android 2d物理引擎Box2d介绍
- 【技术讨论】从弹弹堂说起,如何用2D物理引擎编写一个游戏<一>2011-11-05 10:36
- Android 2D物理引擎Box2d的使用示例
- Android 2d物理引擎Box2d的使用示例
- /LGC物理引擎/Android port of Box2d
- HTML5之2D物理引擎 Box2D for javascript Games 系列 第三部分之创建图腾破坏者的关卡
- 【技术讨论】从弹弹堂说起,如何用2D物理引擎编写一个游戏<一>
- /LGC物理引擎/javascript 版的 Box2D
- Android 2d物理引擎Box2d的使用示例
- Box2D 物理引擎---创建一个简单的模拟物理世界
- /LGC物理引擎/Ubuntu 下编译运行 Box2D
- Android下2d物理引擎Box2d用法简单实例
- Box2d,物理引擎
- Box2D:给你的Qt程序加上物理引擎(包含windows+linux版)
- cocos2d-x学习之路(12)--物理引擎box2d使用