Yeryomin1 / subterrina

The game is a simulator of driving a vehicle in three-dimensional space.

Home Page:https://yeryomin1.github.io/subterrina/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subterrina

Simple javascript and HTML5's canvas 3D simulator game allowing you to be an iron mole driver. The project uses three-dimensional graphics of three.js library and controls of dat.GUI library. View online.

Current features

  • Head-Up Display with indication of vehicle parameters:
    • roll
    • pitch
    • heading
    • depth
  • keyboard control

Controls

  • '4'/'6': roll, left/right
  • W/S: pitch, nose down/up
  • A/D: Left/Right yaw

HUD attitude

The artificial horizon indicator works on the principle of a fixed earth. This means that the horizon line remains stationary while the vehicle symbol rotates relative to it.

Physics

Obviously, there are no exact models for the game. Currently, there is no source data for creating such models. However, we can make some assumptions:

  1. The mole moves in the direction of its longitudinal axis, the values of the angles of attack and sideslip are negligible.
  2. The vehicle does not need lift force, such as that of an airplane wing. This statement is less obvious than the first one. Let's say that the mole is more of a submarine than an airplane.

The permissible values of roll and pitch angles are limited. Violation of the restrictions leads to the destruction of the vehicle. The maximum value for both angles in either direction is 60 degrees.

About

The game is a simulator of driving a vehicle in three-dimensional space.

https://yeryomin1.github.io/subterrina/

License:Other


Languages

Language:JavaScript 97.8%Language:HTML 2.2%