Skip to content

Instantly share code, notes, and snippets.

Ellery Prisk ellerynz

Block or report user

Report or block ellerynz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View genesis_public_key
0473eadbe0576409073f1aac3b9e6a1fcc2df66bb7bbf4fdb5c91582f5cb283e5f6e2eed09025d4e3be4c377cea57d9538711c64c8fd8c8607adbe748c724c47dd;gchan
@ellerynz
ellerynz / OptionalMovement
Created Oct 27, 2013
Alternative way for the AI to move to a location over time
View OptionalMovement
if (!agent.MoveTo(cylinderPosition, deltaTime)) {
return ActionResult.RUNNING;
}
@ellerynz
ellerynz / AIMoveToCylinder
Created Oct 27, 2013
A RAIN{Indie} custom action to chase a cylinder as long as it is in sight.
View AIMoveToCylinder
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 Oct 27, 2013
A simple RAIN{Indie} custom action for patrolling between waypoints
View AIPatrol
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;
You can’t perform that action at this time.