Creating a grid of objects

Here’s some stripped down code I use to create a grid of objects in Unity. I’ve used this setup in my Android game Block Blaze when the level is initialised. It’s attached to a Generator object, which also has some other functionality like determining what type of object is created, whether an object needs to be regenerated… Continue reading Creating a grid of objects

Unity3D Development – Rigidbody Reset Force / Motion Code

In my new game I need to be able to give an object in motion a new force (same magnitude) in a random direction with a button press. Here’s my C# solution using Coroutines. Its working perfectly for me and solves the weird physics problem with stopping/starting using rigidbody.isKinematic. All these code snippets are in… Continue reading Unity3D Development – Rigidbody Reset Force / Motion Code

C# – Object Oriented Programming – Lab 4

Here is the scenario we want to test: – Write a “if else” statement that checks to see if bx and by are INSIDE the box. If the point (bx,by) is inside the box, print “Inside” otherwise print “Not inside”. (Hint use && in your answer) – Write a “if else” statement that checks to… Continue reading C# – Object Oriented Programming – Lab 4