import Phaser from 'phaser'
import parseObj from './parseObj'
import {
rotateX3D,
rotateY3D,
rotateZ3D
} from './utils'
import IModel from './IModel'
const t = {
x: -0.003490658503988659,
y: 0.003490658503988659,
z: -0.003490658503988659
}
export default class DepthSort3D extends Phaser.Scene
{
private graphics!: Phaser.GameObjects.Graphics
private models: IModel[] = []
private balls: Phaser.GameObjects.Image[] = []
private model?: IModel
private m = 0
preload()
{
this.load.image('ball', '/assets/sprites/shinyball.png')
this.load.text('bevelledcube', '/assets/text/bevelledcube.obj')