Selaa lähdekoodia

Removing unneeded function

supports will not be needed, every plugin should take care of
support-functions by itself.
Raanan Weber 9 vuotta sitten
vanhempi
commit
d00ba072e2

+ 0 - 10
src/Physics/Plugins/babylon.cannonJSPlugin.ts

@@ -889,16 +889,6 @@
             return window.CANNON !== undefined;
         }
 
-        //TODO 
-        public supports(feature: PhysicsFeature) {
-            switch (feature) {
-                case PhysicsFeature.PIVOT_IN_JOINT:
-                    return false;
-                case PhysicsFeature.TRIMESH:
-                    return true;
-            }
-        }
-
         public dispose() {
             //nothing to do, actually.
         }

+ 3 - 11
src/Physics/babylon.physicsEngine.ts

@@ -94,6 +94,9 @@
             }
         }
 
+        /**
+         * Called by the scene. no need to call it.
+         */
         public _step(delta: number) {
             //check if any mesh has no body / requires an update
             this._impostors.forEach((impostor) => {
@@ -125,16 +128,6 @@
         }
     }
 
-    export enum PhysicsFeature {
-        PIVOT_IN_JOINT,
-        TRIMESH,
-
-    }
-
-    export interface PhysicsFeatures {
-
-    }
-
     export interface IPhysicsEnginePlugin {
         world: any;
         name: string;
@@ -147,7 +140,6 @@
         generateJoint(joint: PhysicsImpostorJoint);
         removeJoint(joint: PhysicsImpostorJoint)
         isSupported(): boolean;
-        supports(feature: PhysicsFeature): boolean;
         setTransformationFromPhysicsBody(impostor: PhysicsImpostor);
         setPhysicsBodyTransformation(impostor: PhysicsImpostor, newPosition:Vector3, newRotation: Quaternion);
         dispose();