Documentation
¶
Index ¶
- Constants
- func Clamp(val, min, max float32) float32
- func Cos(f float32) float32
- func DivFloor(n, d int) int
- func GetTranslationMatrix(translation mgl32.Vec3) *mgl32.Mat4
- func GetXRotationMatrix(rotationRads float32) *mgl32.Mat4
- func GetYRotationMatrix(rotationRads float32) *mgl32.Mat4
- func GetZRotationMatrix(rotationRads float32) *mgl32.Mat4
- func MaxAbs(a, b float32) float32
- func Perspective(near, far, fovDegs, aspect float32) *mgl32.Mat4
- func Sin(f float32) float32
- func Vec2ToStr(vec *mgl32.Vec2) string
- func Vec3ToStr(vec *mgl32.Vec3) string
- func VecAdd(vec *mgl32.Vec3, x, y, z float32) *mgl32.Vec3
- func VecMul(vec *mgl32.Vec3, x, y, z float32) *mgl32.Vec3
Constants ¶
View Source
const DragRatio float32 = 0.2
View Source
const DragRatioVertical float32 = 0
View Source
const Gravity float32 = 0.35 // units/sec^2
View Source
const HalfPi = math.Pi / 2
View Source
const JumpStrength float32 = 0.11 // units/sec
View Source
const PlayerSpeed float32 = 2 // units/sec
View Source
const TicksPerSecond = 100
View Source
const TwoPi = math.Pi * 2
View Source
const UnitLength float32 = 10
Variables ¶
This section is empty.
Functions ¶
func GetXRotationMatrix ¶
func GetYRotationMatrix ¶
func GetZRotationMatrix ¶
func Perspective ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.