func (mi *MeshInstance) Center() types.Vec3 {
	return mi.center
}
Get AABB center.
package input
import (
	"math"
	"github.com/achilleasa/polaris/asset"
	"github.com/achilleasa/polaris/types"
)
type Material struct {
	Name string
	Expression string
	AssetRelPath *asset.Resource
	Used bool
}
type Primitive struct {
	Vertices      [3]types.Vec3
	Normals       [3]types.Vec3
	UVs           [3]types.Vec2
	MaterialIndex int
	bbox   [2]types.Vec3
	center types.Vec3
}
func (prim *Primitive) SetBBox(bbox [2]types.Vec3) {
	prim.bbox = bbox
}
func (prim *Primitive) SetCenter(center types.Vec3) {
	prim.center = center
}
func (prim *Primitive) BBox() [2]types.Vec3 {
	return prim.bbox
}
func (prim *Primitive) Center() types.Vec3 {
	return prim.center
}
type Mesh struct {
	Name       string
	Primitives []*Primitive
	bbox            [2]types.Vec3
	bboxNeedsUpdate bool
}
type MeshInstance struct {
	MeshIndex uint32
	Transform types.Mat4
	bbox   [2]types.Vec3
	center types.Vec3
}
func (mi *MeshInstance) SetBBox(bbox [2]types.Vec3) {
	mi.bbox = bbox
}
func (mi *MeshInstance) SetCenter(center types.Vec3) {
	mi.center = center
}
func (mi *MeshInstance) BBox() [2]types.Vec3 {
	return mi.bbox
}