コード例 #1
0
        public static QJointTransform Interpolate(QJointTransform frameA, QJointTransform frameB, float progression)
        {
            Vector3    pos = Vector3.Lerp(frameA.position, frameB.position, progression);
            Quaternion rot = Quaternion.Lerp(frameA.rotation, frameB.rotation, progression);

            return(new QJointTransform(pos, rot));
        }
コード例 #2
0
 public QKeyframe(float _timeStamp, QJointTransform _pose)
 {
     timeStamp = _timeStamp;
     pose      = _pose;
 }