Vec3

From MaratisWiki
Revision as of 14:40, 5 February 2013 by Anael (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Minimal vector manipulation for 3d vector, compatible with the current table system :

vec = vec3(x, y, z)

allowing basic math (addition, multiplication etc), for example :

pos = (getPosition(object) + vec3(1, 0, 0)) * 2
-- it's still a table like before :
x = pos[1]
y = pos[2]
z = pos[3]
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox