Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(LineRenderer))]
public class Verlet : MonoBehaviour
{
class Point
{
public Point(Vector3 pos, Vector3 oldPos)
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()
@GordeyChernyy
GordeyChernyy / KeyboardShortcuts.cs
Last active August 21, 2017 16:04
Unity Editor script for hide/unhide selected. Put this script into Assets/Editor folder
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);