sebavan 6 年之前
父节点
当前提交
0958bfaeeb

+ 0 - 5
Tools/Gulp/tasks/gulpTasks-watchCore.js

@@ -77,11 +77,6 @@ gulp.task("watchCore", gulp.series("watchCore-buildShaders", function watch() {
             .pipe(uncommentShaders())
             .pipe(processShaders(true));
     });
-    watch.on("unlink", (event) => {
-        return gulp.src(event)
-            .pipe(uncommentShaders())
-            .pipe(processShaders(true));
-    });
 
     return Promise.resolve();
 }));

+ 0 - 5
Tools/Gulp/tasks/gulpTasks-watchLibraries.js

@@ -68,11 +68,6 @@ gulp.task("watchLibraries", function startWatch() {
                         .pipe(uncommentShaders())
                         .pipe(processShaders(false));
                 });
-                watch.on("unlink", (event) => {
-                    return gulp.src(event)
-                        .pipe(uncommentShaders())
-                        .pipe(processShaders(false));
-                });
 
                 tasks.push(watch);
             }

+ 3 - 3
src/Physics/Plugins/cannonJSPlugin.ts

@@ -111,7 +111,7 @@ export class CannonJSPlugin implements IPhysicsEnginePlugin {
             //try to keep the body moving in the right direction by taking old properties.
             //Should be tested!
             if (oldBody) {
-                ['force', 'torque', 'velocity', 'angularVelocity'].forEach(function (param) {
+                ['force', 'torque', 'velocity', 'angularVelocity'].forEach(function(param) {
                     impostor.physicsBody[param].copy(oldBody[param]);
                 });
             }
@@ -214,7 +214,7 @@ export class CannonJSPlugin implements IPhysicsEnginePlugin {
         if (impostorJoint.joint.type !== PhysicsJoint.SpringJoint) {
             this.world.addConstraint(constraint);
         } else {
-            (<SpringJointData>impostorJoint.joint.jointData).forceApplicationCallback = (<SpringJointData>impostorJoint.joint.jointData).forceApplicationCallback || function () {
+            (<SpringJointData>impostorJoint.joint.jointData).forceApplicationCallback = (<SpringJointData>impostorJoint.joint.jointData).forceApplicationCallback || function() {
                 constraint.applyForce();
             };
             impostorJoint.mainImpostor.registerAfterPhysicsStep((<SpringJointData>impostorJoint.joint.jointData).forceApplicationCallback);
@@ -626,7 +626,7 @@ export class CannonJSPlugin implements IPhysicsEnginePlugin {
         //this will force cannon to execute at least one step when using interpolation
         let step_tmp1 = new this.BJSCANNON.Vec3();
         let Engine = this.BJSCANNON;
-        this.BJSCANNON.World.prototype.step = function (dt: number, timeSinceLastCalled: number, maxSubSteps: number) {
+        this.BJSCANNON.World.prototype.step = function(dt: number, timeSinceLastCalled: number, maxSubSteps: number) {
             maxSubSteps = maxSubSteps || 10;
             timeSinceLastCalled = timeSinceLastCalled || 0;
             if (timeSinceLastCalled === 0) {