• Stars
    star
    147
  • Rank 251,347 (Top 5 %)
  • Language
    JavaScript
  • License
    Other
  • Created over 11 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Collision Detection & Response in JavaScript

GoblinPhysics

GoblinPhysics is an open source physics engine written from the ground up in JavaScript. It aims to provide a fast and dependable physics simulation regardless of platform (desktop vs. mobile, browser vs. nodejs).

Examples

Features

  • Rigid body simulation
  • Sphere, Box, Cone, Cylinder, Plane, Convex, Mesh, and Compound shapes
  • Weld, Slider, and Point constraints
  • Basic event callback system
  • Ray tracing
  • Example scripts
  • Test suite

Documentation

See Building below for how to generate documentation. Hosted version available at http://www.goblinphysics.com/documentation.

Roadmap

Non-exhaustive list of planned features

  • Sweep & Prune broad phase
  • More event callbacks
  • More constraints
  • Internal object re-use (framework for this is in place, need to actually use it)
  • Island solver
  • Box-Box detection for better performance and stability
  • Force generators

Tests

Building

gulp is used to build the library and generate documentation. Follow gulp's getting started page for a quick setup. To install the packages necessary to build GoblinPhysics, run npm install in the git checkout directory. Once all of the packages have been downloaded you can build by running gulp default. To generate documenation, run gulp docs.

License

GoblinPhysics is distributed under the zlib license. This means you can use the library to do whatever you want, free of charge, with or without giving attribution (although attribution is always appreciated). Three.js and Stats.js, used in GoblinPhysics' examples and tests, are distributed under the MIT license which requires attribution if used.

More Repositories

1

Physijs

Physics plugin for Three.js
JavaScript
2,760
star
2

ThreeCSG

CSG plugin for Three.js
JavaScript
453
star
3

FamilyTreeJS

Easy programmatic creation & display of family trees through Javascript.
JavaScript
48
star
4

shrine

Boilerplate monorepo for modular JavaScript development
JavaScript
17
star
5

insula

State management library for JavaScript
JavaScript
13
star
6

collision-detection

JavaScript library for 3D collision detection
JavaScript
11
star
7

AutoshapeJS

JavaScript
8
star
8

react-insula

Connects Insula's state management into React views
JavaScript
7
star
9

Mindless

My entry for the js13k competition
7
star
10

Freeciv-Engine

WebGL engine for Freeciv.net
JavaScript
7
star
11

DatabindExtension

One-way databinding extension for Nunjucks templating engine
JavaScript
5
star
12

multiplayer-pacman

JavaScript
4
star
13

defensegame

A minimal tower defense game created for Develop Denver 2013.
JavaScript
4
star
14

unwordle

wordle solver, as both a CLI util and automated via puppeteer
JavaScript
3
star
15

GameFramework

A game framework built on Goblin Physics, three.js, and React
JavaScript
3
star
16

js-in-scss

Experiment to process SCSS into a JS runtime for applying variable overrides
TypeScript
3
star
17

WebWorkerJoining

exploring how to "join" on web workers, delaying code execution until all workers have finished
JavaScript
3
star
18

with-eui

boilerplate repo with EUI
JavaScript
3
star
19

sagebrush

experimental language & syntax parser
CSS
2
star
20

insula-stringselectors

Insula middleware that allows using strings as state selectors
JavaScript
2
star
21

HighPerformanceJavaScriptIntro

Intro for Develop Denver 2015 talk
JavaScript
1
star
22

sagebrush-engine

TypeScript
1
star
23

node-process-com-benchmark

testing how many JSON messages / bandwidth I can pass between node processes on a host machine
JavaScript
1
star
24

OneGameAMonth

My entires for http://www.onegameamonth.com/
JavaScript
1
star
25

chandlerprall.com

JavaScript
1
star
26

vena

TypeScript
1
star
27

explosive-markdown

Adding physics to rendered markdown for fun a̶n̶d̶ ̶p̶r̶o̶f̶i̶t̶
JavaScript
1
star