Tuesday 27 August 2019

Trixhot Demo

The Unity version of Active Logic ships with a simple, yet functional top down shooter. The main purpose of the code sample is to illustrate effective uses of the library:

  • The demo demonstrates using Active Logic to build not only AI, but also game controllers and user input.
  • A simple version of the source is designed to help beginners learn the basics of the API.
  • A more advanced version of the source takes full advantage of C#7, also demonstrating best performance and thread safe uses.


Early on I decided that this demo wasn't meant to 'wow' with pretty media that would result in a bloated asset store package. Inasmuch as possible, assets are generated programmatically, and the code involved in that stays out of the way.

Duelist Demo

The Duelist demo was created to investigate integrating Active Logic agents with Mecanim. The demo implements battle mechanics:

  • Approach and strike
  • Block
  • Retreat
  • KO

Using Active Logic, the complete `Duelist` AI is about 100 lines of code. The demo will published soon on Github.


Bobba Tea Demo

In order to test and refine the Active Logic API several demos are being created. The Bobba Tea demo features a biped robot animated using PBA (physically based animation) and Active Logic. PBA shares common features with IK driven animation (through bone chains and physics joints) but motion implementation is driven by motors and rotors.


Wednesday 17 August 2016

Drawing with Metal - links

Ray Wenderlich have a 3 part tutorial for this:

1. Getting Started
2. Moving to 3D
3. Adding Texture

Worth noting: Apple provide a nice template for Metal games

Saturday 13 August 2016

Saturday 30 April 2016

GCC 5.2 in XCode 7.3 under OS-X 10.11

You may not need command line tools.

For sake, you can download the command line tools via XCode > OpenDeveloper Tool > More developer tools. But, although sources suggest that this can help with installing GCC, in my experience it is unclear whether that actually works.

You probably need an XCode plugin

There are two plugins at hmazhar/xcode-gcc on Github. I choose the 5.2 plugin and copy to the designated location.

You want GCC 5.2

I used to install GCC via home-brew, which provides the perfect excuse to go for a two hours walk in the park. But you know what? At the time of writing (April 2016) this doesn't work anymore.

Note: the following steps are likely to erase/override any previous GCC install.

  • Used a tarball 
  • ditto to copy the tarball to usr/local (DO NOT copy via Finder as it will trash your /usr folder - Probably an obscure terminal command would have saved me the hassle, eh)
  • Renamed gcc to gcc-5 as  hinted by XCode's response to the build command.
Config for C++11
  • Under Other C++ Flags you may need to add a flag for C++ 11 support.



Wednesday 27 April 2016

Compile Code Online.

What if you wanted to quickly compile a little bit of C++ or Java? Yes, there are online services for that, for example:

Where this should get handy is producing online samples that are proven to work, or sometimes (for educational purposes) not work. What I was really after was an online tool that would cross compile my code on GCC, VS and Clang. Haven't found this yet.

If you're looking for a quick scratchpad, CodingGround works well. Saving and sharing projects? No luck.