object

package
v0.0.0-...-296174e Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity interface {
	GetMesh() *primitives.Mesh
	GetWorld() *primitives.Matrix4x4
}

type Movable

type Movable interface {
	GetPosition() *primitives.Vector3d
	Move(translation *primitives.Vector3d)
	GetTranslationMatrix() *primitives.Matrix4x4
}

type Rotatable

type Rotatable interface {
	GetRotation() *primitives.Vector3d
	Rotate(rotation *primitives.Vector3d)
	GetRotationMatrix() *primitives.Matrix4x4
}

type UObject

type UObject struct {
	// contains filtered or unexported fields
}

func New

func New() *UObject

func NewEntity

func NewEntity(m *primitives.Mesh, translation, rotation *primitives.Vector3d) *UObject

func (*UObject) Get

func (obj *UObject) Get(key string) any

func (*UObject) GetMesh

func (obj *UObject) GetMesh() *primitives.Mesh

func (*UObject) GetPosition

func (obj *UObject) GetPosition() *primitives.Vector3d

func (*UObject) GetRotation

func (obj *UObject) GetRotation() *primitives.Vector3d

func (*UObject) GetRotationMatrix

func (obj *UObject) GetRotationMatrix() *primitives.Matrix4x4

func (*UObject) GetTranslationMatrix

func (obj *UObject) GetTranslationMatrix() *primitives.Matrix4x4

func (*UObject) GetWorld

func (obj *UObject) GetWorld() *primitives.Matrix4x4

func (*UObject) Move

func (obj *UObject) Move(translation *primitives.Vector3d)

func (*UObject) Rotate

func (obj *UObject) Rotate(rotation *primitives.Vector3d)

func (*UObject) Set

func (obj *UObject) Set(key string, value any)

Jump to

Keyboard shortcuts

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