local transformations in one matrix
im trying to, rather than do the whole subtract origin from quard, apply matrix, add origin im trying to consolidate it into one matrix. right now ive got an overloaded cMatrix constructor which takes translate Tx, Ty, and Tz as params. heres the code - cMatrix GenLocalMat(cMatrix Mat, cVector3 Axis) {
return (cMatrix(-Axis.X, -Axis.Y, -Axis.Z)*Mat*
cMatrix(Axis.X, Axis.Y, Axis.Z));
}
i said axis rather than origin cuz i cant spell axis. is this right? it duznt seem to be working
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement