IgePathComponent

Method: currentDirection

Gets the current direction.
currentDirection ()
Returns String A string such as N, S, E, W, NW, NE, SW, SE. If there is currently no direction then the return value is a blank string.

Get the direction of movement along the current path

// Create an entity and add the path component
var entity = new IgeEntity()
    .addComponent(IgePathComponent);

// Create a path and add it to the entity
// ...
// Now get the current direction
var direction = entity.path.currentDirection();
© Copyright 2013 Irrelon Software Limited. All Rights Reserved. UK Registered Company Number: 07522767
Isogenic (ī´sōjen´ik): Adj originating from a common source; possessing the same genetic composition.
Strange Things Happen at the One Two Point