| 1990 | } |
| 1991 | |
| 1992 | void TSShape::getNodeKeyframe(S32 nodeIndex, const TSShape::Sequence& seq, S32 keyframe, MatrixF* mat) const |
| 1993 | { |
| 1994 | // Get the node rotation and translation |
| 1995 | QuatF rot; |
| 1996 | if (seq.rotationMatters.test(nodeIndex)) |
| 1997 | { |
| 1998 | S32 index = seq.rotationMatters.count(nodeIndex) * seq.numKeyframes + keyframe; |
| 1999 | nodeRotations[seq.baseRotation + index].getQuatF(&rot); |
| 2000 | } |
| 2001 | else |
| 2002 | defaultRotations[nodeIndex].getQuatF(&rot); |
| 2003 | |
| 2004 | Point3F trans; |
| 2005 | if (seq.translationMatters.test(nodeIndex)) |
| 2006 | { |
| 2007 | S32 index = seq.translationMatters.count(nodeIndex) * seq.numKeyframes + keyframe; |
| 2008 | trans = nodeTranslations[seq.baseTranslation + index]; |
| 2009 | } |
| 2010 | else |
| 2011 | trans = defaultTranslations[nodeIndex]; |
| 2012 | |
| 2013 | // Set the keyframe matrix |
| 2014 | rot.setMatrix(mat); |
| 2015 | mat->setPosition(trans); |
| 2016 | } |
| 2017 | |
| 2018 | bool TSShape::setSequenceBlend(const String& seqName, bool blend, const String& blendRefSeqName, S32 blendRefFrame) |
| 2019 | { |
nothing calls this directly
no test coverage detected