Closed lpberg closed 11 years ago
Hmm.
Well, MT.matrix
is actually a function (see results of help(mat)
) - typically called with MT:matrix()
so I'm not terribly surprised you can't set MT.matrix
, but MT.Matrix = mat
should error but not crash.
MT.Matrix = osg.Matrixd()
works.
MT.Matrix = osg.Matrixf()
crashes.
and the "error" in your third line, which should have come back like:
bin/vrjlua: [string "MatrixTransform{}.matrix = osg.Matrixd()"]:1: No property 'matrix' defined in 'osg::MatrixTransform'
is the right error - there is no such property.
the getter / setter property - .matrix crashes for the setter
example:
MT = MatrixTransform{}
mat = MT.matrix
(works just fine)MT.matrix = mat
(.matrix
isn't recognized property)MT.Matrix = mat
(listed under thehelp()
func crashes VRJugglua)