Documentation
¶
Index ¶
- type Entity
- type Movable
- type Rotatable
- type UObject
- func (obj *UObject) Get(key string) any
- func (obj *UObject) GetMesh() *primitives.Mesh
- func (obj *UObject) GetPosition() *primitives.Vector3d
- func (obj *UObject) GetRotation() *primitives.Vector3d
- func (obj *UObject) GetRotationMatrix() *primitives.Matrix4x4
- func (obj *UObject) GetTranslationMatrix() *primitives.Matrix4x4
- func (obj *UObject) GetWorld() *primitives.Matrix4x4
- func (obj *UObject) Move(translation *primitives.Vector3d)
- func (obj *UObject) Rotate(rotation *primitives.Vector3d)
- func (obj *UObject) Set(key string, value any)
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 NewEntity ¶
func NewEntity(m *primitives.Mesh, translation, rotation *primitives.Vector3d) *UObject
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)
Click to show internal directories.
Click to hide internal directories.