This file contains hidden or 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; | |
[RequireComponent(typeof(LineRenderer))] | |
public class Verlet : MonoBehaviour | |
{ | |
class Point | |
{ | |
public Point(Vector3 pos, Vector3 oldPos) |
This file contains hidden or 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
from random import shuffle | |
from random import randrange | |
import random | |
import math | |
from math import cos | |
from math import sin | |
node = hou.pwd() | |
geo = node.geometry() |
This file contains hidden or 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; | |
public class KeyboardShortcuts : EditorWindow { | |
[MenuItem("Window/KeyboardShortcuts/1 _h", false, 999)] | |
static void HideSelection () { | |
foreach (GameObject obj in Selection.gameObjects) { | |
if ( obj.activeSelf) { | |
obj.SetActive (false); |