소스 검색

Added setStepId() to allow recalculating previous steps.

Gianni 8 년 전
부모
커밋
2dcec852ed
6개의 변경된 파일6894개의 추가작업 그리고 6884개의 파일을 삭제
  1. 3439 3438
      dist/preview release/babylon.d.ts
  2. 3 3
      dist/preview release/babylon.js
  3. 4 0
      dist/preview release/babylon.max.js
  4. 3439 3438
      dist/preview release/babylon.module.d.ts
  5. 3 3
      dist/preview release/babylon.worker.js
  6. 6 2
      src/babylon.scene.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3439 - 3438
dist/preview release/babylon.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3 - 3
dist/preview release/babylon.js


+ 4 - 0
dist/preview release/babylon.max.js

@@ -16361,6 +16361,10 @@ var BABYLON;
             enumerable: true,
             configurable: true
         });
+        Scene.prototype.setStepId = function (newStepId) {
+            this._currentStepId = newStepId;
+        };
+        ;
         Scene.prototype.getStepId = function () {
             return this._currentStepId;
         };

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3439 - 3438
dist/preview release/babylon.module.d.ts


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3 - 3
dist/preview release/babylon.worker.js


+ 6 - 2
src/babylon.scene.ts

@@ -500,6 +500,10 @@
             return this._useRightHandedSystem;
         }
 
+        public setStepId(newStepId: number): void {
+            this._currentStepId = newStepId;
+        };
+
         public getStepId(): number {
             return this._currentStepId;
         };
@@ -2965,7 +2969,7 @@
               var internalSteps = Math.floor(this._timeAccumulator / defaultTimeStep);
               internalSteps = Math.min(internalSteps, maxSubSteps);
 
-              for(this._currentInternalStep=0; this._currentInternalStep<internalSteps; this._currentInternalStep++){
+              for(this._currentInternalStep = 0; this._currentInternalStep < internalSteps; this._currentInternalStep++){
 
                 this.onBeforeStepObservable.notifyObservers(this);
 
@@ -2984,7 +2988,7 @@
                 this.onAfterStepObservable.notifyObservers(this);
                 this._currentStepId++;
 
-                if((internalSteps>1) && (this._currentInternalStep != internalSteps-1)) {
+                if((internalSteps > 1) && (this._currentInternalStep != internalSteps - 1)) {
                     // Q: can this be optimized by putting some code in the afterStep callback?
                     // I had to put this code here, otherwise mesh attached to bones of another mesh skeleton,
                     // would return incorrect positions for internal stepIds (non-rendered steps)