Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 11, 2018 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/eba561d69cf8c3f4fe8bd7e9062d16ae to your computer and use it in GitHub Desktop.
Save todorok1/eba561d69cf8c3f4fe8bd7e9062d16ae to your computer and use it in GitHub Desktop.
Unityチュートリアル・Inspectorウィンドウからのデバッグのスクリプト。
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SphereBooster : MonoBehaviour {
// 力を加える方向
public Vector3 forceDirection = new Vector3(1.0f, 1.0f, 0f);
// 加える力の大きさ
[SerializeField]
float forceMagnitude = 10.0f;
// イカ、省略
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment