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
/* | |
* (x1,y1)と(x2,y2)を通る直線に速度(*vx,*vy)で移動する物体がぶつかった時の反射を計算するです。 | |
* 直線に沿って摩擦frictionと反発係数reboundを設定できるです。 | |
*/ | |
void Refrection(double *vx,double *vy,double x1,double y1,double x2,double y2,double friction,double rebound){ | |
double tanx; | |
double a11,a12,a21,a22; | |
double bunbo; | |
double x,y; |
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
#include<stdio.h> | |
int main(){ | |
char _[]="hello!world"; | |
char a[]="hello!world"; | |
char b[]="hello!world"; | |
char c[]="hello!world"; | |
char d[]="hello!world"; | |
char e[]="hello!world"; | |
char f[]="hello!world"; | |
char g[]="hello!world"; |
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
namespace hoge | |
{ | |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Reflection; | |
public class TestCoroutineWindow : EditorWindow | |
{ | |
public TestMonobehaviour targetObject; |
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
namespace hoge | |
{ | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using System.Collections.Generic; | |
public class TestReorderableListWindow : EditorWindow | |
{ | |
[SerializeField] private List<int> list = new List<int>(); |
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
/////////////////////////////////////////////////////////// | |
// 動作環境: processing-2.2.1 Windows10 | |
// Gif書き出しには GifAnimation のインストールが必須です | |
/////////////////////////////////////////////////////////// | |
// import gifAnimation.*; | |
// GifMaker gifExport; | |
// 色 | |
final color WHITE = color(255); |
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
Shader "Unlit/Polygon" | |
{ | |
Properties | |
{ | |
[HideInInspector] _MainTex ("Texture", 2D) = "white" {} | |
_N("N", Int) = 3 | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } |
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
Shader "Unlit/PolygonLine" | |
{ | |
Properties | |
{ | |
[HideInInspector] _MainTex ("Texture", 2D) = "white" {} | |
_N("N", Int) = 3 | |
_W("Width", Range(0, 1.0)) = 0.1 | |
} | |
SubShader | |
{ |
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
Shader "Unlit/Polygon Color" | |
{ | |
Properties | |
{ | |
[HideInInspector] _MainTex ("Texture", 2D) = "white" {} | |
_N("N", Int) = 4 | |
_Size ("Size", Range(0, 1)) = 0.25 | |
_W("Width", Range(0, 1.0)) = 0.05 | |
_Rotation ("Rotation", Range(0, 360)) = 0 |
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 UnityEngine; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using System.IO; //System.IO.FileInfo, System.IO.StreamReader, System.IO.StreamWriter | |
using System; //Exception | |
using System.Text; //Encoding | |
[InitializeOnLoad] | |
public class EditorSceneViewText |
OlderNewer