Saturday, October 27, 2018

The Lamb lies down on Broadway

Wolf (the black square) and sheep (white sphere) prancing on a field. Grass and water are using the same data structure from the cellular automata. I still have to implement the AIs and the rules.

Conway's Game of life

An experiment implementing a cellular automata system to support a world with resources.

Saturday, October 13, 2018

Redout Shader

The Skybox for this week wasn't ready for this #screenshotsaturday (I could not manage to create the fsm to turn around the camera in time, never mind to stitch the images), so instead I worked a bit on a redout shader instead.

Friday, October 12, 2018

How to access the GameObject from a StateMachineBehaviour.

Let's say that you are using Unity's Animator/Mecanim component as a Finite State Machine and you don't need to use it for Animations, and let's say you have a Foo MonoBehaviour object with a Bar() method attached to your AnimationController. How do you access it from any method in any one of your StateMachineBehaviour?
animator.gameObject.GetComponent<Foo>().Bar();
doggone it...

Friday, October 5, 2018

A Floating Point Origin Test

After not being able to wrap my head over Unity ECS I got back to my plan to create a world with Floating Point Origin. This is the first test: it's just 4 zones that get displaced and looped over, while the camera gets translated to 0 every time it gets over a new zone. It's still not interactive.