diff --git a/ar-SA/images/spinning-heart.gif b/ar-SA/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/ar-SA/images/spinning-heart.gif differ diff --git a/ar-SA/meta.yml b/ar-SA/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/ar-SA/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/ar-SA/step_1.md b/ar-SA/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/ar-SA/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/ar-SA/unity-comments.txt b/ar-SA/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/ar-SA/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/ar-SA/unity-translatable.txt b/ar-SA/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/ar-SA/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/cy-GB/images/spinning-heart.gif b/cy-GB/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/cy-GB/images/spinning-heart.gif differ diff --git a/cy-GB/meta.yml b/cy-GB/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/cy-GB/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/cy-GB/step_1.md b/cy-GB/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/cy-GB/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/cy-GB/unity-comments.txt b/cy-GB/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/cy-GB/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/cy-GB/unity-translatable.txt b/cy-GB/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/cy-GB/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/el-GR/images/spinning-heart.gif b/el-GR/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/el-GR/images/spinning-heart.gif differ diff --git a/el-GR/meta.yml b/el-GR/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/el-GR/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/el-GR/step_1.md b/el-GR/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/el-GR/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/el-GR/unity-comments.txt b/el-GR/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/el-GR/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/el-GR/unity-translatable.txt b/el-GR/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/el-GR/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/en-US/images/spinning-heart.gif b/en-US/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/en-US/images/spinning-heart.gif differ diff --git a/en-US/meta.yml b/en-US/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/en-US/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/en-US/step_1.md b/en-US/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/en-US/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/en-US/unity-comments.txt b/en-US/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/en-US/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/en-US/unity-translatable.txt b/en-US/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/en-US/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/es-LA/images/spinning-heart.gif b/es-LA/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/es-LA/images/spinning-heart.gif differ diff --git a/es-LA/meta.yml b/es-LA/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/es-LA/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/es-LA/step_1.md b/es-LA/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/es-LA/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/es-LA/unity-comments.txt b/es-LA/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/es-LA/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/es-LA/unity-translatable.txt b/es-LA/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/es-LA/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/fr-FR/images/spinning-heart.gif b/fr-FR/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/fr-FR/images/spinning-heart.gif differ diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml new file mode 100644 index 0000000..ce75180 --- /dev/null +++ b/fr-FR/meta.yml @@ -0,0 +1,10 @@ +title: Créer un GameObject qui tourne +hero_image: images/banner.png +description: Créer un GameObject qui tourne +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Créer un GameObject qui tourne diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md new file mode 100644 index 0000000..9c5adb4 --- /dev/null +++ b/fr-FR/step_1.md @@ -0,0 +1,29 @@ +![La vue Game montrant un GameObject tournant autour de son axe Y.](images/spinning-heart.gif) + +Dans la fenêtre Inspector pour le GameObject, clique sur « Add Component » et choisis « New script », puis donne à ton script un nom approprié (par exemple « ItemController »). + +Double-clique sur ton nouveau script pour l'ouvrir dans l'éditeur de code. + +Crée une variable pour contrôler la « vitesserotation » et le code pour faire tourner ton GameObject : + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +Tu peux effectuer une rotation sur les axes X, Y ou Z en modifiant la direction dans ton code : ++ Vector3.right / Vector3.left = Rotation sur l'axe X ++ Vector3.up / Vector3.down = Rotation sur l'axe Y ++ Vector3.forward / Vector3.back = Rotation sur l'axe Z + +**Astuce :** si tu as ajouté un « Particle System » à ton GameObject, modifie la propriété « Simulation Space » dans la fenêtre Inspector en `World` afin qu'il ne tourne pas avec ton GameObject. diff --git a/fr-FR/unity-comments.txt b/fr-FR/unity-comments.txt new file mode 100644 index 0000000..ba620df --- /dev/null +++ b/fr-FR/unity-comments.txt @@ -0,0 +1,3 @@ +Update est appelée une fois par image + +Tu peux aussi tourner en arrière, en haut, en bas, à gauche et à droite diff --git a/fr-FR/unity-translatable.txt b/fr-FR/unity-translatable.txt new file mode 100644 index 0000000..e4f5b23 --- /dev/null +++ b/fr-FR/unity-translatable.txt @@ -0,0 +1 @@ +vitesserotation diff --git a/hi-IN/images/spinning-heart.gif b/hi-IN/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/hi-IN/images/spinning-heart.gif differ diff --git a/hi-IN/meta.yml b/hi-IN/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/hi-IN/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/hi-IN/step_1.md b/hi-IN/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/hi-IN/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/hi-IN/unity-comments.txt b/hi-IN/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/hi-IN/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/hi-IN/unity-translatable.txt b/hi-IN/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/hi-IN/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/hr-HR/images/spinning-heart.gif b/hr-HR/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/hr-HR/images/spinning-heart.gif differ diff --git a/hr-HR/meta.yml b/hr-HR/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/hr-HR/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/hr-HR/step_1.md b/hr-HR/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/hr-HR/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/hr-HR/unity-comments.txt b/hr-HR/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/hr-HR/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/hr-HR/unity-translatable.txt b/hr-HR/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/hr-HR/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/ja-JP/images/spinning-heart.gif b/ja-JP/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/ja-JP/images/spinning-heart.gif differ diff --git a/ja-JP/meta.yml b/ja-JP/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/ja-JP/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/ja-JP/step_1.md b/ja-JP/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/ja-JP/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/ja-JP/unity-comments.txt b/ja-JP/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/ja-JP/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/ja-JP/unity-translatable.txt b/ja-JP/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/ja-JP/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/kn-IN/images/spinning-heart.gif b/kn-IN/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/kn-IN/images/spinning-heart.gif differ diff --git a/kn-IN/meta.yml b/kn-IN/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/kn-IN/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/kn-IN/step_1.md b/kn-IN/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/kn-IN/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/kn-IN/unity-comments.txt b/kn-IN/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/kn-IN/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/kn-IN/unity-translatable.txt b/kn-IN/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/kn-IN/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/mr-IN/images/spinning-heart.gif b/mr-IN/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/mr-IN/images/spinning-heart.gif differ diff --git a/mr-IN/meta.yml b/mr-IN/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/mr-IN/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/mr-IN/step_1.md b/mr-IN/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/mr-IN/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/mr-IN/unity-comments.txt b/mr-IN/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/mr-IN/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/mr-IN/unity-translatable.txt b/mr-IN/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/mr-IN/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/nl-NL/images/spinning-heart.gif b/nl-NL/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/nl-NL/images/spinning-heart.gif differ diff --git a/nl-NL/meta.yml b/nl-NL/meta.yml new file mode 100644 index 0000000..4d870d7 --- /dev/null +++ b/nl-NL/meta.yml @@ -0,0 +1,10 @@ +title: Maak een GameObject dat draait +hero_image: images/banner.png +description: Maak een GameObject dat draait +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Maak een GameObject dat draait diff --git a/nl-NL/step_1.md b/nl-NL/step_1.md new file mode 100644 index 0000000..ee8ebc0 --- /dev/null +++ b/nl-NL/step_1.md @@ -0,0 +1,29 @@ +![De spelweergave toont een hart GameObject dat rond zijn Y-as draait.](images/spinning-heart.gif) + +Klik in het Inspector-venster voor het GameObject op 'Add Component' en kies 'New script'. Geef vervolgens je script een logische naam (bijvoorbeeld 'ItemController'). + +Dubbelklik op het nieuwe script om het te openen in de code editor. + +Maak een variabele die de 'draaisnelheid' en code regelt om je Gameobject te laten draaien: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +Je kunt roteren over de X, Y of Z assen door de richting in je code aan te passen: ++ Vector3.right / Vector3.left = Rotatie over de X-as ++ Vector3.up / Vector3.down = Rotatie over de Y-as ++ Vector3.forward / Vector3.back = Rotatie over de Z-as + +**Tip:** Als je een 'Particle System' aan je GameObject hebt toegevoegd, verander de 'Simulatie Space' eigenschap in het Inspector venster naar `World` zodat het niet met je Gameobject mee draait. diff --git a/nl-NL/unity-comments.txt b/nl-NL/unity-comments.txt new file mode 100644 index 0000000..934f757 --- /dev/null +++ b/nl-NL/unity-comments.txt @@ -0,0 +1,3 @@ +Update wordt één keer per frame aangeroepen + +Je kunt ook achteruit, omhoog, omlaag, naar links en naar rechts draaien diff --git a/nl-NL/unity-translatable.txt b/nl-NL/unity-translatable.txt new file mode 100644 index 0000000..eb864ef --- /dev/null +++ b/nl-NL/unity-translatable.txt @@ -0,0 +1 @@ +draaiSnelheid diff --git a/or-IN/images/spinning-heart.gif b/or-IN/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/or-IN/images/spinning-heart.gif differ diff --git a/or-IN/meta.yml b/or-IN/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/or-IN/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/or-IN/step_1.md b/or-IN/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/or-IN/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/or-IN/unity-comments.txt b/or-IN/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/or-IN/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/or-IN/unity-translatable.txt b/or-IN/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/or-IN/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/pl-PL/images/spinning-heart.gif b/pl-PL/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/pl-PL/images/spinning-heart.gif differ diff --git a/pl-PL/meta.yml b/pl-PL/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/pl-PL/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/pl-PL/step_1.md b/pl-PL/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/pl-PL/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/pl-PL/unity-comments.txt b/pl-PL/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/pl-PL/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/pl-PL/unity-translatable.txt b/pl-PL/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/pl-PL/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/pt-BR/images/spinning-heart.gif b/pt-BR/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/pt-BR/images/spinning-heart.gif differ diff --git a/pt-BR/meta.yml b/pt-BR/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/pt-BR/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/pt-BR/step_1.md b/pt-BR/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/pt-BR/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/pt-BR/unity-comments.txt b/pt-BR/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/pt-BR/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/pt-BR/unity-translatable.txt b/pt-BR/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/pt-BR/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/sw-KE/images/spinning-heart.gif b/sw-KE/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/sw-KE/images/spinning-heart.gif differ diff --git a/sw-KE/meta.yml b/sw-KE/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/sw-KE/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/sw-KE/step_1.md b/sw-KE/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/sw-KE/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/sw-KE/unity-comments.txt b/sw-KE/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/sw-KE/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/sw-KE/unity-translatable.txt b/sw-KE/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/sw-KE/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/xh-ZA/images/spinning-heart.gif b/xh-ZA/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/xh-ZA/images/spinning-heart.gif differ diff --git a/xh-ZA/meta.yml b/xh-ZA/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/xh-ZA/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/xh-ZA/step_1.md b/xh-ZA/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/xh-ZA/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/xh-ZA/unity-comments.txt b/xh-ZA/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/xh-ZA/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/xh-ZA/unity-translatable.txt b/xh-ZA/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/xh-ZA/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed diff --git a/zu-ZA/images/spinning-heart.gif b/zu-ZA/images/spinning-heart.gif new file mode 100644 index 0000000..a6e12bc Binary files /dev/null and b/zu-ZA/images/spinning-heart.gif differ diff --git a/zu-ZA/meta.yml b/zu-ZA/meta.yml new file mode 100644 index 0000000..4964508 --- /dev/null +++ b/zu-ZA/meta.yml @@ -0,0 +1,10 @@ +title: Create a GameObject that spins +hero_image: images/banner.png +description: Create a GameObject that spins +version: 4 +listed: false +copyedit: false +last_tested: "2021-11-18" +steps: + - + title: Create a GameObject that spins diff --git a/zu-ZA/step_1.md b/zu-ZA/step_1.md new file mode 100644 index 0000000..addd358 --- /dev/null +++ b/zu-ZA/step_1.md @@ -0,0 +1,29 @@ +![The Game view showing a hear GameObject spinning about it's Y axis.](images/spinning-heart.gif) + +In the Inspector window for the GameObject, click ‘Add Component’ and choose ‘New script’ then give your script a sensible name (for example 'ItemController'). + +Double-click on your new script to open it in the code editor. + +Create a variable to control the 'spinSpeed' and code to spin your GameObject: + +--- code --- +--- +language: cs +--- + + public float spinSpeed = 5.0f; + + // Update is called once per frame + void Update() + { + transform.Rotate(Vector3.forward * spinSpeed); //you can also spin backward, up, down, left and right + } + +--- /code --- + +You can rotate about the X, Y, or Z axes by amending the direction in your code: ++ Vector3.right / Vector3.left = Rotation about the X axis ++ Vector3.up / Vector3.down = Rotation about the Y axis ++ Vector3.forward / Vector3.back = Rotation about the Z axis + +**Tip:** If you have added a 'Particle System' to your GameObject change the 'Simulation Space' property in the Inspector window to `World` so that it does not spin with your GameObject. diff --git a/zu-ZA/unity-comments.txt b/zu-ZA/unity-comments.txt new file mode 100644 index 0000000..b24dce9 --- /dev/null +++ b/zu-ZA/unity-comments.txt @@ -0,0 +1,3 @@ +Update is called once per frame + +You can also spin backward, up, down, left and right diff --git a/zu-ZA/unity-translatable.txt b/zu-ZA/unity-translatable.txt new file mode 100644 index 0000000..d7d7a9f --- /dev/null +++ b/zu-ZA/unity-translatable.txt @@ -0,0 +1 @@ +spinSpeed