vancegroup / vr-jugglua

VR JuggLua: A Framework for VR Applications Combining Lua, OpenSceneGraph, and VR Juggler
Boost Software License 1.0
11 stars 12 forks source link

Matrix multiplication doesn't appear to work. #94

Closed carlsonp closed 11 years ago

carlsonp commented 12 years ago
inv = osg.Matrixd()
inv:invert(RelativeTo.World:getMatrix())

print(inv:getTrans())

-- -0 -0 -1.75858

print(inv * Vec(1,0,0))

-- 1 0 0
print(inv:preMult(Vec(0, 0, 0)))

-- 0 0 -1.75858
rpavlik commented 11 years ago

Should be fixed, I hope, with the new stuff.