Skip to content

Instantly share code, notes, and snippets.

View asus4's full-sized avatar
:octocat:
Working from home

Koki Ibukuro asus4

:octocat:
Working from home
View GitHub Profile
@asus4
asus4 / DVector3.cs
Last active December 11, 2015 12:48
[Unity] double 精度の Vector3 クラス
using UnityEngine;
namespace Imu {
/// <summary>
/// Double Accuracy Vector3 class.
/// </summary>
public struct DVector3 {
public double x;
public double y;
@asus4
asus4 / ImageAlphaBatching.sh
Last active July 10, 2016 06:37
imagealpha と imageoptim バッチ処理です。
/Applications/ImageAlpha.app/Contents/MacOS/pngquant --speed 1 --force --ext .png 32 *.png; open -a imageoptim *.png
@asus4
asus4 / LeapUtil.cs
Created February 5, 2013 08:57
Convert LeapMotion Coordinate system to Unity
using UnityEngine;
namespace Leap {
public class LeapUtil
{
public static Vector3 ToPositionVector3 (Vector position)
{
return new Vector3 (position.x, position.y, -position.z);
}
@asus4
asus4 / index.html
Created March 5, 2013 03:31
simple html5 temlate
<!DOCTYPE HTML>
<html lang="ja">
<head>
<title>Html5 templete</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<link rel="apple-touch-icon" href="img/icon.png"/>
</head>
<body>
coffee -bwc -j js/script.js coffee
@asus4
asus4 / Flash Builder .gitignore
Last active December 15, 2015 12:29
Flash Builder .gitignore
.DS_Store
.actionScriptProperties
.flexProperties
.project
.settings/*
bin-debug/*
fla/*.swf
@asus4
asus4 / UnitySteerMemo.md
Last active December 18, 2015 07:29
UnitySteer Memo

Unity Steerのクラスメモ

  • DetectableObject : Steerライブラリで検出する基本オブジェクト
    • SphericalObstacleData : 影響範囲を表示するだけ
    • Vehicle : 乗り物の基本クラス
      • TickedVehicle : 自動的に進行方向へ進む。抽象クラス
        • AutonomousVehicle : 能動的に動く。自動でforceとかを設定する。キャラっぽくなる。
        • Biped : 二足歩行の生き物をシュミレートするよ。
      • PassiveVehicle : ?Velocityが関係ない?
  • Steering : 移動制御の抽象ベースクラス
@asus4
asus4 / PropertyRandomizer.cs
Last active December 18, 2015 11:59
Randomize the oher component properties.
using UnityEngine;
using System;
using System.Reflection;
/// <summary>
/// Ramdomize Other Component Property
/// </summary>
[AddComponentMenu("Libs/Modules/PropertyRandomizer")]
public class PropertyRandomizer : MonoBehaviour {
@asus4
asus4 / .gitignore
Created July 1, 2013 02:41
Xcode .gitignore
.DS_Store
*.swp
*~.nib
build/
*.pbxuser
*.perspective
*.perspectivev3
@asus4
asus4 / OpenSceneTool.cs
Created July 8, 2013 01:15
Unity Open Scene Editor Utility
using UnityEngine;
using UnityEditor;
namespace MyProject {
/// <summary>
/// Open Scene Editor Tools.
/// </summary>
public class OpenSceneTool : EditorWindow {