ccpgames/ccpwgl

Tw2QuaternionKey

Closed this issue · 0 comments

The Tw2QuaternionKey constructor is defined twice, one of which looks like the older style of tr2 keys.

Tw2RotationCurve.js

/**
 * Tw2QuaternionKey
 * @property {number} time
 * @property {quat4} value
 * @property {quat4} left
 * @property {quat4} right
 * @property {number} interpolation
 * @constructor
 */
function Tw2QuaternionKey()
{
    this.time = 0;
    this.value = quat4.create();
    this.left = quat4.create();
    this.right = quat4.create();
    this.interpolation = 5;
}

Tw2QuaternoinCurve.js

/**
 * Tw2QuaternionKey
 * @property {number} time
 * @property {quat4} value
 * @property {quat4} leftTangent
 * @property {quat4} rightTangent
 * @property {number} interpolation
 * @constructor
 */
function Tw2QuaternionKey()
{
    this.time = 0;
    this.value = quat4.create();
    this.leftTangent = quat4.create();
    this.rightTangent = quat4.create();
    this.interpolation = 1;
}