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
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; |
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 System.Collections; | |
using System.Collections.Generic; | |
public enum SpringType | |
{ | |
manhattan, | |
structural, | |
shear, | |
bend |
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 System.Collections; | |
using System.Collections.Generic; | |
public class GridGenerator : MonoBehaviour | |
{ | |
[SerializeField] | |
private GameObject _gridPrefab; | |
public int rows; | |
public int cols; |
NewerOlder