All Projects → anuraghazra → Verly.js

anuraghazra / Verly.js

Licence: mit
🔴〰️🔵〰️⚫️ Easy to integrate Verlet physics engine. 🔗

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Verly.js

Physics3d
A 3D physics engine
Stars: ✭ 101 (-71.31%)
Mutual labels:  engine, physics-engine
Jelloswift
Swift soft body physics engine
Stars: ✭ 134 (-61.93%)
Mutual labels:  engine, physics-engine
glazejs
A high performance 2D game engine built in Typescript
Stars: ✭ 96 (-72.73%)
Mutual labels:  engine, physics-engine
Ruleengine
最好使用的规则引擎之一,可以直接使用SQL语句定义规则,简化了编码的负荷,也可以使用XML, drl文件配置规则,还支持drools文件导入。One of the best rule engines, is easy to use SQL statements to define rules, simplify the workload of coding, it also can use XML, DRL file to configure rules, and support import drools file directly.
Stars: ✭ 271 (-23.01%)
Mutual labels:  engine
Bansheeengine
Modern C++14 game engine with Vulkan support, fully featured editor and C# scripting
Stars: ✭ 2,906 (+725.57%)
Mutual labels:  engine
Opengrok
OpenGrok is a fast and usable source code search and cross reference engine, written in Java
Stars: ✭ 3,452 (+880.68%)
Mutual labels:  engine
Cannon.js
A lightweight 3D physics engine written in JavaScript.
Stars: ✭ 3,783 (+974.72%)
Mutual labels:  physics-engine
Drools
rules engine
Stars: ✭ 266 (-24.43%)
Mutual labels:  engine
Scout Extended
Scout Extended: The Full Power of Algolia in Laravel
Stars: ✭ 330 (-6.25%)
Mutual labels:  engine
Gameplay
Open-source, cross-platform, C++ game engine for creating 2D/3D games.
Stars: ✭ 3,429 (+874.15%)
Mutual labels:  engine
Librelancer
A re-implementation of Freelancer
Stars: ✭ 303 (-13.92%)
Mutual labels:  engine
Gamification Engine
gamification-engine (gengine) is a framework for developing gamification features for your application
Stars: ✭ 286 (-18.75%)
Mutual labels:  engine
Dyn4j
Java Collision Detection and Physics Engine
Stars: ✭ 317 (-9.94%)
Mutual labels:  physics-engine
Jitterphysics
A cross-platform, realtime physics engine for all .NET apps.
Stars: ✭ 277 (-21.31%)
Mutual labels:  engine
Friceengine
🎮 JVM game engine based on Swing/JavaFX.
Stars: ✭ 330 (-6.25%)
Mutual labels:  engine
Oimophysics
A cross-platform 3D physics engine
Stars: ✭ 269 (-23.58%)
Mutual labels:  physics-engine
Jstarcraft Rns
专注于解决推荐领域与搜索领域的两个核心问题:排序预测(Ranking)和评分预测(Rating). 为相关领域的研发人员提供完整的通用设计与参考实现. 涵盖了70多种排序预测与评分预测算法,是最快最全的Java推荐与搜索引擎.
Stars: ✭ 324 (-7.95%)
Mutual labels:  engine
Erd
A Rails engine for drawing your app's ER diagram
Stars: ✭ 296 (-15.91%)
Mutual labels:  engine
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 294 (-16.48%)
Mutual labels:  engine
Maktoub
A simple newsletter engine for Rails
Stars: ✭ 308 (-12.5%)
Mutual labels:  engine

Verly.js

Easy to integrate verlet physics engine.

  • Yet another physics engine? really?
  • Yes because i love physics ❤️.

Read my article on medium about Making a Verlet Physics Engine in JavaScript

cool things made with Verly.js


want more info? Check out the API documentation

Experimental Reactjs Integration - check out the sandbox

Installation

git clone https://github.com/anuraghazra/Verly.js.git

local development

after cloning the repo in command line run to build

npm install && npm run build

Usage

import CDN link

<!-- add this to head -->
<script src="https://cdn.jsdelivr.net/gh/anuraghazra/[email protected]/dist/verly.bundle.js"></script>
  window.onload = function () {
    let canvas = document.getElementById('c');
    let ctx = canvas.getContext('2d');
    let width = 600;
    let height = 600;
    canvas.width = width;
    canvas.height = height;

    // iteration, canvas, ctx
    let verly = new Verly(16, canvas, ctx);

    // x, y, w, h
    verly.createBox(20, 100, 100, 100);
    // x, y, segments, radius
    verly.createHexagon(200, 200, 16, 50);
    // x, y, w, h, segments, pinOffset
    verly.createCloth(300, 200, 300, 300, 15, 2);
    // x, y, segments, gap, pin
    verly.createRope(500, 150, 20, 15, 0);
    // x, y
    verly.createRagdoll(300, 200);

    function animate() {
      ctx.clearRect(0, 0, width, height);

      verly.update();
      verly.render();

      // for interacting with points
      verly.interact();
      
      requestAnimationFrame(animate);
    }
    animate();
  }


Author

Contributions Are Welcomed.

Made with ❤️ and JavaScript

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].