Esempio n. 1
0
 /// <summary>
 /// Initializes the engine and sets the instance value.
 /// </summary>
 void Awake()
 {
     instance   = this;
     bodyCount  = 0;
     bodies     = new List <DBody>();
     detector   = new SimpleDetector();
     integrator = new EulerImplicit();
     contacts   = new HashSet <Manifold>();
     simulate   = false;
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     rigidbody2d = GetComponent <Rigidbody2D>();
     footScript  = footTrigger.GetComponent <SimpleDetector>();
 }