bounds

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(path string, manifest Manifest) error

Types

type AABB

type AABB struct {
	Center Vec3 `json:"center"`
	Size   Vec3 `json:"size"`
}

type Manifest

type Manifest struct {
	Scene   string         `json:"scene"`
	Source  string         `json:"source"`
	Version int            `json:"version"`
	Objects []ObjectBounds `json:"objects"`
	Prefabs []PrefabBounds `json:"prefabs"`
}

func Load

func Load(path string) (Manifest, error)

type ObjectBounds

type ObjectBounds struct {
	FileID int64  `json:"fileID"`
	Name   string `json:"name"`
	Bounds AABB   `json:"bounds"`
}

type PrefabBounds

type PrefabBounds struct {
	Path   string `json:"path"`
	Bounds AABB   `json:"bounds"`
}

type Vec3

type Vec3 [3]float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL