在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:shakiba/planck.js开源软件地址:https://github.com/shakiba/planck.js开源编程语言:TypeScript 73.4%开源软件介绍:Planck.jsPlanck.js is JavaScript (TypeScript) rewrite of Box2D physics engine for cross-platform HTML5 game development. Motivations
Documentation
Community
API and ArchitecturePlanck.js includes Box2D algorithms without modification and its architecture is very similar to Box2D. However some internal changes and refactoring are made during rewrite to address differences between C++ and JavaScript. Planck.js public API closely follows Box2D API, with the following differences:
Updatesv1.0-alpha
Installv0.3 (stable release)To install v1.0 (alpha)Staring from v1.0 package name is changed to CDNPlanck.js is available on jsDelivr. NPMInstall npm package. npm install planck Import it in your code. import * as planck from 'planck'; TestbedUse CDN in a web page. <html><body>
<script src="//cdn.jsdelivr.net/npm/planck@latest/dist/planck-with-testbed.min.js"></script>
<script>
planck.testbed(function(testbed) {
// Your testbed code
});
</script>
</body></html> Use NPM package in Node. const planck = require('planck/dist/planck-with-testbed');
planck.testbed(function() {
// ...
}); ProjectsGames
Dynamic Visualization
Science and AI
Game DevelopmentCreditsBox2D is a popular C++ 2D rigid-body physics engine created by Erin Catto. Box2D is used in several popular games, such as Angry Birds, Limbo and Crayon Physics, as well as game development tools and libraries such as Apple's SpriteKit. Planck.js is developed and maintained by Ali Shakiba. TypeScript definitions for planck.js are developed by Oliver Zell. LicensePlanck.js is available under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论