p-Unity

p-Unity

p-Unity is/was/will-be a dumping ground for stuff I’ve written in Scala/Gradle to automate the parts of Unity3D that I wish to automate. For now; it’s a (twitchy) way to run editor tests from the command-line. Once/when I assemble re-usable packages, I’ll be able to fill in the stubs and make it; - build pre-compile assemblies from src/(main|test)/punity/ in Gradle-Like fasion. - publish/consume code as Gradle dependencies - export packages from the command line - export players from the command line

Moving Platforms in Unity3D

This is a short example of moving platforms in Unity3D. Based on this tweet, I spent … 30 minutes? Maybe? putting it together. This writeup took longer. The approach uses two behaviour classes to achive the classical effect of moving platforms that follow some path. mark some empty GameObject as Waypoint instances give each Waypoint a next field attach a Mover instance to your platform(s) drag the platform towards the next Waypoint at a fixed rate when you’ve reached the Waypoint, continue with its next one My example;