Przeglądaj źródła

Remove irrelevant check on shape extrusion

Cedric Guillemet 4 lat temu
rodzic
commit
5b6087ed96
1 zmienionych plików z 0 dodań i 4 usunięć
  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);