Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
EXAMPLE
--BAD
double x = Math.Floor(blocks .GetPosition().GetDim(0));
double y = Math.Floor(blocks .GetPosition().GetDim(1));
double z = Math.Floor(blocks .GetPosition().GetDim(2));
var Location="X: " + x.ToString() + " Y: " + y.ToString() + " Z: " + z.ToString();
--BETTER
var BlockPosition=blocks .GetPosition();
double x = Math.Floor(BlockPosition.GetDim(0));
double y = Math.Floor(BlockPosition.GetDim(1));
double z = Math.Floor(BlockPosition.GetDim(2));
var Location="X: " + x.ToString() + " Y: " + y.ToString() + " Z: " + z.ToString();
--
Even better ...not as pretty
var Location=blocks .GetPosition().ToString();
hope this helps you guys gain some knowledge http://pastebin.com/mj3YPG4W
Such simple but great tools.
It will be absolutely necessary once I start telling my drone to face a certain direction and then figure out which thrusters to activate.
He could also convert the strings to int or other type
lol you beat me to it! I was just going to mention that he didn't have to round... Awkwardly.