Documentation
¶
Overview ¶
this file contains some functions for creating active objects
this file contains rotation code
this file contains a bunch of probably redundent vector operations
Index ¶
Constants ¶
const ( X = 0 Y = 1 Z = 2 )
XYZ for vec type
Variables ¶
This section is empty.
Functions ¶
func CubeAO ¶
CubeAO creates a AOProps object for a cube name can be anything that has a "tnt"-like texture naming scheme mediaPool is the mediapool the textures are contained in
Types ¶
type Vec ¶
type Vec [3]float64
Vec is a 3 dimensional float64 vector
func RotateAroundAxis2a ¶
RotateAroundAxis2a rotates around `point` singe `axis` on XZ plane, Y axis is ignored `angle` specifie angle to XY plane (or YZ idk)
func RotateAroundAxis3a ¶
RotateAroundAxis3a gets Position rotated `point` around `axis` based on angles angles is 0:XY; 1:XZ; 2:YZ
func ShiftAngle ¶
ShiftAngle shifts `relPos` relative to `pos` `angle` specifie angle to XY plane (or YZ idk)