Skip to content

Instantly share code, notes, and snippets.

View ellerynz's full-sized avatar

Ellery Prisk ellerynz

View GitHub Profile
@ellerynz
ellerynz / genesis_public_key
Created February 23, 2018 03:04
genesis_public_key
0473eadbe0576409073f1aac3b9e6a1fcc2df66bb7bbf4fdb5c91582f5cb283e5f6e2eed09025d4e3be4c377cea57d9538711c64c8fd8c8607adbe748c724c47dd;gchan
@ellerynz
ellerynz / OptionalMovement
Created October 27, 2013 23:33
Alternative way for the AI to move to a location over time
if (!agent.MoveTo(cylinderPosition, deltaTime)) {
return ActionResult.RUNNING;
}
@ellerynz
ellerynz / AIMoveToCylinder
Created October 27, 2013 23:30
A RAIN{Indie} custom action to chase a cylinder as long as it is in sight.
import RAIN.Action;
import RAIN.Core;
class AIMoveToCylinder extends RAIN.Action.Action
{
private var wayPath : RAIN.Path.RAINPathManager;
private var raySensor : RAIN.Sensors.RaycastSensor;
private var cylinder: GameObject;
function newclass() {
@ellerynz
ellerynz / AIPatrol
Created October 27, 2013 22:46
A simple RAIN{Indie} custom action for patrolling between waypoints
import RAIN.Action;
import RAIN.Core;
class AIPatrol extends RAIN.Action.Action
{
private var agentPosition : Vector3 = Vector3.zero;
private var targetLocation : Vector3 = Vector3.zero;
private var wayPath : RAIN.Path.RAINPathManager;
private var wayPathSize : int;
private var count = 0;