|
@@ -1,37 +1,28 @@
|
|
/// <reference path="../babylon.d.ts" />
|
|
/// <reference path="../babylon.d.ts" />
|
|
|
|
|
|
declare module BABYLON {
|
|
declare module BABYLON {
|
|
- class _Animatable {
|
|
|
|
- target: Object;
|
|
|
|
- fromFrame: number;
|
|
|
|
- toFrame: number;
|
|
|
|
- loopAnimation: bool;
|
|
|
|
- animationStartDate: Date;
|
|
|
|
- speedRatio: number;
|
|
|
|
-
|
|
|
|
- constructor(target: Object, from: number, to: number, loop: bool, speedRatio?: number);
|
|
|
|
-
|
|
|
|
- _animate(): bool;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
class Animation {
|
|
class Animation {
|
|
name: string;
|
|
name: string;
|
|
|
|
+ targetProperty: string;
|
|
targetPropertyPath: string[];
|
|
targetPropertyPath: string[];
|
|
framePerSecond: number;
|
|
framePerSecond: number;
|
|
dataType: string;
|
|
dataType: string;
|
|
loopMode: number;
|
|
loopMode: number;
|
|
_keys: number[];
|
|
_keys: number[];
|
|
|
|
+ _offsetCache: Object;
|
|
|
|
+ _highLimitsCache: Object;
|
|
|
|
|
|
constructor(name: string, targetProperty: string, framePerSecond: number, dataType: string, loopMode: number);
|
|
constructor(name: string, targetProperty: string, framePerSecond: number, dataType: string, loopMode: number);
|
|
|
|
|
|
clone(): Animation;
|
|
clone(): Animation;
|
|
setKeys(values: number[]);
|
|
setKeys(values: number[]);
|
|
_interpolate(currentFrame: number, repeatCount: number, loopMode: number, offsetValue: number, highLimitValue: number);
|
|
_interpolate(currentFrame: number, repeatCount: number, loopMode: number, offsetValue: number, highLimitValue: number);
|
|
- animate(target: Object, delay: number, from: number, to: number, loop: bool, speedRatio: number): bool;
|
|
|
|
|
|
+ animate(target: Object, delay: number, from: number, to: number, loop: boolean, speedRatio: number): boolean;
|
|
|
|
|
|
static ANIMATIONTYPE_FLOAT: number;
|
|
static ANIMATIONTYPE_FLOAT: number;
|
|
static ANIMATIONTYPE_VECTOR3: number;
|
|
static ANIMATIONTYPE_VECTOR3: number;
|
|
static ANIMATIONTYPE_QUATERNION: number;
|
|
static ANIMATIONTYPE_QUATERNION: number;
|
|
|
|
+ static ANIMATIONTYPE_MATRIX: number;
|
|
|
|
|
|
static ANIMATIONLOOPMODE_RELATIVE: number;
|
|
static ANIMATIONLOOPMODE_RELATIVE: number;
|
|
static ANIMATIONLOOPMODE_CYCLE: number;
|
|
static ANIMATIONLOOPMODE_CYCLE: number;
|