/basic-science

Structures and syntax to help with scientific calculations

Primary LanguageC#MIT LicenseMIT

Structures and syntax to help with basic scientific calculations in Unity

Note: List of operations and conversion is not complete, I'm adding them manually one by one depending on what's needed. Issues and Pull requests are welcome.

using BasicScience;

// conversion:
ly alfa_centauri_dist = (pc) 1.34;
deg radian_in_degrees = (rad) 1.0;
s sidereal_day = (h) 23.9344696;
m3ps2 jovian_μ = (kg) 1.898e27;// [m³/s²]

// units deduced from calculation:
var speed = (m) 100 / (s) 3.1;// [m/s]
var heat = (W) 500 * (min) 60;// [J]
var tesla_accel = (mps)(kmph) 96.56 / (s) 2.3;// [m/s²]

Installation

Add this line in manifest.json / dependencies:

"dependencies": {
    "com.andrewraphaellukasik.basicscience": "https://github.com/andrew-raphael-lukasik/basic-science.git#upm",
}

Or via Package Manager / Add package from git URL:

https://github.com/andrew-raphael-lukasik/basic-science.git#upm