Skip to content

Instantly share code, notes, and snippets.

View chuwilliamson's full-sized avatar
:octocat:

Matthew Williamson chuwilliamson

:octocat:
View GitHub Profile
public bool IsColliding (GameObject a, GameObject b)
{
Vector3 minA = a.GetComponent<AABB> ().Min;
Vector3 maxA = a.GetComponent<AABB> ().Max;
Vector3 minB = b.GetComponent<AABB> ().Min;
Vector3 maxB = b.GetComponent<AABB> ().Max;
bool xColliding = false;
bool yColliding = false;
bool zColliding = false;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public enum SpringType
{
manhattan,
structural,
shear,
bend
@chuwilliamson
chuwilliamson / GridGenerator.cs
Created December 4, 2015 18:20
Grid Gen for Shelby
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class GridGenerator : MonoBehaviour
{
[SerializeField]
private GameObject _gridPrefab;
public int rows;
public int cols;