Просмотр исходного кода

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

Michael Herzog 4 месяцев назад
Родитель
Сommit
7b82fad194

+ 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号