nero81af
Member
|
bug with cskeleton class?
hi
I'm not sure about this but I have an animated mesh (mesh + cskeleton)
when I try to move the skeleto with .move() or .offset(), if I call .updateMatrix(cskele.matrix()).updateVelocities() I get nothing..
to have this to work I need to make a cusom matrix with the offset vec insteat of the pos part and then use this with updateMatrix.. is this a bug?
|
|
02-13-2010 09:33 AM |
|
Esenthel
Administrator
|
RE: bug with cskeleton class?
what's your code?
first you need to set the matrixes (updatematrix), then you can apply the optional move/offset
|
|
02-13-2010 03:17 PM |
|
Esenthel
Administrator
|
RE: bug with cskeleton class?
if you want to apply offset before updatematrix
you should either pass modified matrix to the updatematrix
or adjust cskel.root.pos before updatematrix
|
|
02-13-2010 03:25 PM |
|
nero81af
Member
|
RE: bug with cskeleton class?
ok: in my code I called .move before .updateMatrix I'll try to switch.. anyway I got it to work passing a modified matrix
|
|
02-14-2010 04:45 PM |
|