Giter VIP home page Giter VIP logo

billiards's Introduction

billiards

codecov CodeFactor Open in Gitpod

Unsophisticated billiards spinning ball physics.

Demo

In browser WebGL demo. Inspect physics using diagrams

Reference

Papers on ball mechanics, cushions and max spin simulation 1 2 3

3D graphics uses three.js

Inline LaTeX editor

Key equations

surface velocity

equation

sliding motion

equation

equation

equation

rolling motion

equation

equation

where

equation ,equation

cushion bounce

Setup

nvm use v14.15.1
yarn install
yarn dev

Test

yarn test
yarn coverage
yarn serve

Maintain

yarn deps
yarn upgrade -L
yarn prettify

Two player

yarn websocket
yarn serve

add query parameter to url ?websocketserver=wss://host

Features

Backspin and sidespin well modeled. Presentation in 2d or 3d in any modern browser. Record and playback breaks. Two player mode with node websocket server.

Controls

Use mouse or keyboard:

Aim

Control Fine aim

Topspin and backspin

Shift Side spin

Space Hit - hold for more power

Progress snapshots

July 2018

July 2019

March 2021

Star History

Star History Chart

billiards's People

Contributors

tailuge avatar ettet1000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.