cam

package
v0.0.0-...-87cb436 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FpsCamera

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

func NewFpsCamera

func NewFpsCamera(position, worldUp mgl32.Vec3, yaw, pitch float64, im *win.InputManager) *FpsCamera

func (*FpsCamera) GetAngle

func (camera *FpsCamera) GetAngle() float64

func (*FpsCamera) GetFront

func (camera *FpsCamera) GetFront() mgl32.Vec3

func (*FpsCamera) GetPos

func (camera *FpsCamera) GetPos() mgl32.Vec3

func (*FpsCamera) GetTransform

func (camera *FpsCamera) GetTransform() mgl32.Mat4

GetCameraTransform gets the matrix to transform from world coordinates to this camera's coordinates.

func (*FpsCamera) Update

func (c *FpsCamera) Update(dTime float64)

Jump to

Keyboard shortcuts

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