Skip to content

EmptySamurai/GearTrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GearTrain

WebGL 3D gear train simulation using three.js. It supports spur, straight miter bevel and helical skew gears.

Controls

To move camera use mouse and mouse wheel.

There are two modes to work with simulation:

  1. Add/remove mode. In this mode you can
    • Add selected gear to shaft by double clicking on the shaft.
    • Add gear to another gear by by double clicking on the gear.
    • Remove gear or shaft by right clicking on it. The driver (initially created) shaft cannot be removed.
  2. Info mode. In this mode you can double click on shaft or gear to get info about it.

There are also some shortcuts for controls:

Key Action
a Add/remove mode
i Info mode
s Add spur gear in add mode
b Add bevel gear in add mode
h Add helical gear in add mode
Space Play/pause

Settings

All controls' states are saved into cookies and have session lifetime.

Saving and loading

By clicking on "Save" button you will save current gear train into JSON file. You can load it by clicking on 'Load' button.

About

WebGL gear train simulation using three.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published