Direction.kt 448 Bytes
Newer Older
morkolai's avatar
morkolai committed
1
    package com.mygdx.game.model
2
3
4
5
6
7
8
9
10
11
12
13
14
15

import com.badlogic.gdx.math.Vector3

enum class Direction {
    UPPERRIGHT,
    RIGHT,
    LOWERRIGHT,
    LOWERLEFT,
    LEFT,
    UPPERLEFT
}

// Sequence matches Direction enum above (UpperRight, Right, LowerRight, LowerLeft, Left, UpperLeft)
var directionalUnitVectors = listOf(Vector3(1F, 0F, -1F), Vector3(1F, -1F, 0F), Vector3(0F, -1F, 1F), Vector3(-1F, 0F, 1F), Vector3(-1F, 1F, 0F), Vector3(0F, 1F, -1F))