Procházet zdrojové kódy

Merge pull request #9829 from CedricGuillemet/ropeCapping

[physics]Removed irrelevant check on shape extrusion
David Catuhe před 4 roky
rodič
revize
dda28ce67b
1 změnil soubory, kde provedl 0 přidání a 4 odebrání
  1. 0 4
      src/Physics/Plugins/ammoJSPlugin.ts

+ 0 - 4
src/Physics/Plugins/ammoJSPlugin.ts

@@ -796,10 +796,6 @@ export class AmmoJSPlugin implements IPhysicsEnginePlugin {
                 Logger.Warn("No shape available for extruded mesh");
                 return new this.bjsAMMO.btCompoundShape();
             }
-            if ((vertexPositions!.length % (3 * pathVectors.length)) !== 0) {
-                Logger.Warn("Path does not match extrusion");
-                return new this.bjsAMMO.btCompoundShape();
-            }
             len = pathVectors.length;
             segments = len - 1;
             this._tmpAmmoVectorA.setValue(pathVectors[0].x, pathVectors[0].y, pathVectors[0].z);