// 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();