| 96 | } |
| 97 | |
| 98 | void TSShapeLoader::generateNodeTransform(AppNode* node, F32 t, bool blend, F32 referenceTime, |
| 99 | QuatF& rot, Point3F& trans, QuatF& srot, Point3F& scale) |
| 100 | { |
| 101 | MatrixF m1 = getLocalNodeMatrix(node, t); |
| 102 | if (blend) |
| 103 | { |
| 104 | MatrixF m0 = getLocalNodeMatrix(node, referenceTime); |
| 105 | m1 = m0.inverse() * m1; |
| 106 | } |
| 107 | |
| 108 | rot.set(m1); |
| 109 | trans = m1.getPosition(); |
| 110 | srot.identity(); //@todo: srot not supported yet |
| 111 | scale = m1.getScale(); |
| 112 | } |
| 113 | |
| 114 | //----------------------------------------------------------------------------- |
| 115 |
nothing calls this directly
no test coverage detected