add some useful math stuff to GlobalVars (#7670)

* VlobalGars

* E
This commit is contained in:
Mythril382
2022-10-07 19:49:00 +08:00
committed by GitHub
parent fb1e56a944
commit 0b128e5bca

View File

@ -38,7 +38,14 @@ public class GlobalVars{
put("false", 0);
put("true", 1);
put("null", null);
//math
put("@pi", Mathf.PI);
put("π", Mathf.PI); //for the "cool" kids
put("@e", Mathf.E);
put("@degToRad", Mathf.degRad);
put("@radToDeg", Mathf.radDeg);
//time
varTime = put("@time", 0);
varTick = put("@tick", 0);
@ -48,7 +55,6 @@ public class GlobalVars{
varWaveTime = put("@waveTime", 0);
//special enums
put("@ctrlProcessor", ctrlProcessor);
put("@ctrlPlayer", ctrlPlayer);
put("@ctrlCommand", ctrlCommand);