فهرست منبع

Revert "Revert "Physics Addons: Add errors when trying to use `getShape()` for unsupported geometry types."" (#32394)

Michael Herzog 4 ماه پیش
والد
کامیت
7b82fad194
3فایلهای تغییر یافته به همراه6 افزوده شده و 0 حذف شده
  1. 2 0
      examples/jsm/physics/AmmoPhysics.js
  2. 2 0
      examples/jsm/physics/JoltPhysics.js
  3. 2 0
      examples/jsm/physics/RapierPhysics.js

+ 2 - 0
examples/jsm/physics/AmmoPhysics.js

@@ -66,6 +66,8 @@ async function AmmoPhysics() {
 
 		}
 
+		console.error( 'AmmoPhysics: Unsupported geometry type:', geometry.type );
+
 		return null;
 
 	}

+ 2 - 0
examples/jsm/physics/JoltPhysics.js

@@ -28,6 +28,8 @@ function getShape( geometry ) {
 
 	}
 
+	console.error( 'JoltPhysics: Unsupported geometry type:', geometry.type );
+
 	return null;
 
 }

+ 2 - 0
examples/jsm/physics/RapierPhysics.js

@@ -73,6 +73,8 @@ function getShape( geometry ) {
 
 	}
 
+	console.error( 'RapierPhysics: Unsupported geometry type:', geometry.type );
+
 	return null;
 
 }

粤ICP备19079148号