You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
604 B

package pavelsobolev.kotogl.Helpers
// distances from point of view to objects of 3D scene
object ZObjectsPos
{
/**
* 0=>central polyhedron z-position, 1=>left, 2=>right, 3=>top, 4=>bottom
*/
private var zPositions: IntArray
init
{
zPositions = IntArray(5)
zPositions[0] = -6
zPositions[1] = -7
zPositions[2] = -6
zPositions[3] = -7
zPositions[4] = -7
}
fun setPosition(pos: Int, newVal: Int)
{
zPositions[pos] = newVal
}
fun getPosition(pos: Int): Int
{
return zPositions[pos]
}
}