Created
April 11, 2018 07:38
Star
You must be signed in to star a gist
Unityチュートリアル・角度計算のスクリプト。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SphereBooster : MonoBehaviour { | |
// 加える力の大きさ | |
[SerializeField] | |
float forceMagnitude = 10.0f; | |
// X軸からの角度 | |
[SerializeField] | |
float forceAngle = 45.0f; | |
// 力を加える方向 | |
Vector3 forceDirection = new Vector3(1.0f, 1.0f, 0f); | |
// イカ、省略 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment