Skip to content
forked from Altanis/kinetics

A blazingly fast physics engine for both servers and the web, written in TypeScript 🔥

Notifications You must be signed in to change notification settings

atvsipi/kinetics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image Credits to SimplyTav for creating this logo.

About

A blazingly fast, simple 2D physics engine for JavaScript and TypeScript, for both frontend and backend applications.

Features

  • Easy extension using class inheritance
  • Easy extension with plugins
  • System/Body Architecture Support
  • Built-in Canvas2D Renderer
  • Fast Narrowphase Collision Detection
  • Fast Broadphase Collision Detection
  • Fast Collision Resolution
  • Collision Callbacks

Installation

To install this package on a server or a web framework, use the following command:

npm install git+https://github.com/atvsipi/kinetics.git

For a vanilla HTML/CSS/JS project, use the following script tag:

<script src="https://cdn.jsdelivr.net/gh/atvsipi/kinetics/build/kinetics.min.js" defer></script>

and all of the engine's classes will be available under the Kinetics namespace (window.Kinetics.System, window.Kinetics.Body, etc.).

Benchmarks

A 1920x1080 rectangular system of 1,000 entities was benchmarked, where each body had a radius randomly selected between 3 and 13. Body sleeping was disabled for each benchmark.

System Specifications:

  • Apple M2 chip
  • 8-core CPU with 4 performance cores and 4 efficiency cores
  • 8-core GPU
  • 16-core Neural Engine
  • 100GB/s memory bandwidth

image

The benchmarks provide evidence of the engine's exceptional speed and performance in comparison to other alternatives.

About

A blazingly fast physics engine for both servers and the web, written in TypeScript 🔥

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 52.1%
  • JavaScript 46.9%
  • HTML 1.0%