コインを回転させよう
![8739ac5e 06c4 4a34 8f75 173d94537195](https://codegenius.org/uploads/slide/image/5626/8739ac5e-06c4-4a34-8f75-173d94537195.jpeg)
![8c589f32 bd00 43e9 a2af 83311c4367f3](https://codegenius.org/uploads/slide/image/5627/8c589f32-bd00-43e9-a2af-83311c4367f3.jpeg)
![63d51085 337b 4613 b4c5 38cb2ecea920](https://codegenius.org/uploads/slide/image/5628/63d51085-337b-4613-b4c5-38cb2ecea920.jpeg)
![4b888dc5 c881 40c0 b4de 3e02e1fcf42f](https://codegenius.org/uploads/slide/image/5629/4b888dc5-c881-40c0-b4de-3e02e1fcf42f.jpeg)
コインを回転させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// ★下記の1行を記載してください。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime);
}
}
![Ae09bce7 cb67 426f 93dc b3f60eba170b](https://codegenius.org/uploads/slide/image/5630/ae09bce7-cb67-426f-93dc-b3f60eba170b.jpeg)
![4d87b8c5 6215 4e0f 969e b6541a1a9e8f](https://codegenius.org/uploads/slide/image/5631/4d87b8c5-6215-4e0f-969e-b6541a1a9e8f.jpeg)
![D29f2094 fd67 455b 98cb 005e121caddc](https://codegenius.org/uploads/slide/image/5632/d29f2094-fd67-455b-98cb-005e121caddc.jpeg)
![934fb2f4 9ee6 4035 b078 1180216d9593](https://codegenius.org/uploads/slide/image/5633/934fb2f4-9ee6-4035-b078-1180216d9593.jpeg)
![31d6989e e20b 448f 8d42 892aede52dc8](https://codegenius.org/uploads/slide/image/5634/31d6989e-e20b-448f-8d42-892aede52dc8.jpeg)
![6afa7df1 58cd 4bd4 a169 8596f501b0dc](https://codegenius.org/uploads/slide/image/5635/6afa7df1-58cd-4bd4-a169-8596f501b0dc.jpeg)
![E81a3844 3932 402e 94d0 ab234ab4e2c0](https://codegenius.org/uploads/slide/image/5636/e81a3844-3932-402e-94d0-ab234ab4e2c0.jpeg)
![08eb1d70 289c 4429 9723 6419510b64a7](https://codegenius.org/uploads/slide/image/5637/08eb1d70-289c-4429-9723-6419510b64a7.jpeg)
コインの回転速度を10倍にする
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// コインの回転速度を10倍にする。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime * 10);
}
}
【2020版】BallGame(全27回)
他のコースを見る![8739ac5e 06c4 4a34 8f75 173d94537195](https://codegenius.org/uploads/slide/image/5626/8739ac5e-06c4-4a34-8f75-173d94537195.jpeg)
![8c589f32 bd00 43e9 a2af 83311c4367f3](https://codegenius.org/uploads/slide/image/5627/8c589f32-bd00-43e9-a2af-83311c4367f3.jpeg)
![63d51085 337b 4613 b4c5 38cb2ecea920](https://codegenius.org/uploads/slide/image/5628/63d51085-337b-4613-b4c5-38cb2ecea920.jpeg)
![4b888dc5 c881 40c0 b4de 3e02e1fcf42f](https://codegenius.org/uploads/slide/image/5629/4b888dc5-c881-40c0-b4de-3e02e1fcf42f.jpeg)
コインを回転させる
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// ★下記の1行を記載してください。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime);
}
}
![Ae09bce7 cb67 426f 93dc b3f60eba170b](https://codegenius.org/uploads/slide/image/5630/ae09bce7-cb67-426f-93dc-b3f60eba170b.jpeg)
![4d87b8c5 6215 4e0f 969e b6541a1a9e8f](https://codegenius.org/uploads/slide/image/5631/4d87b8c5-6215-4e0f-969e-b6541a1a9e8f.jpeg)
![D29f2094 fd67 455b 98cb 005e121caddc](https://codegenius.org/uploads/slide/image/5632/d29f2094-fd67-455b-98cb-005e121caddc.jpeg)
![934fb2f4 9ee6 4035 b078 1180216d9593](https://codegenius.org/uploads/slide/image/5633/934fb2f4-9ee6-4035-b078-1180216d9593.jpeg)
![31d6989e e20b 448f 8d42 892aede52dc8](https://codegenius.org/uploads/slide/image/5634/31d6989e-e20b-448f-8d42-892aede52dc8.jpeg)
![6afa7df1 58cd 4bd4 a169 8596f501b0dc](https://codegenius.org/uploads/slide/image/5635/6afa7df1-58cd-4bd4-a169-8596f501b0dc.jpeg)
![E81a3844 3932 402e 94d0 ab234ab4e2c0](https://codegenius.org/uploads/slide/image/5636/e81a3844-3932-402e-94d0-ab234ab4e2c0.jpeg)
![08eb1d70 289c 4429 9723 6419510b64a7](https://codegenius.org/uploads/slide/image/5637/08eb1d70-289c-4429-9723-6419510b64a7.jpeg)
コインの回転速度を10倍にする
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Coin : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
// コインの回転速度を10倍にする。
transform.Rotate(new Vector3(0, 0, 90) * Time.deltaTime * 10);
}
}
コインを回転させよう