engine

package
v0.0.0-...-e182f7f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

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

func NewCamera

func NewCamera() *Camera

NewCamera Creates a new camera object

func (*Camera) MovePosition

func (c *Camera) MovePosition(offsetX, offsetY, offsetZ float32)

MovePosition Moves the camera, X is forward/backward, Y is up/down, and Z is side to side.

func (*Camera) MoveRotation

func (c *Camera) MoveRotation(offsetX, offsetY, offsetZ float32)

MoveRotation Rotates the camera

func (*Camera) SetPosition

func (c *Camera) SetPosition(x, y, z float32)

SetPosition Sets the camera position

func (*Camera) SetRotation

func (c *Camera) SetRotation(x, y, z float32)

SetRotation Sets the camera rotation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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