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.
- Head-Up Display with indication of vehicle parameters:
- roll
- pitch
- heading
- depth
- keyboard control
- '4'/'6': roll, left/right
- W/S: pitch, nose down/up
- A/D: Left/Right yaw
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.
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:
- The mole moves in the direction of its longitudinal axis, the values of the angles of attack and sideslip are negligible.
- 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.