Explorar o código

Examples: Fix AmmoPhysics.

Mugen87 %!s(int64=4) %!d(string=hai) anos
pai
achega
b98cac394b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/jsm/physics/AmmoPhysics.js

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

@@ -28,7 +28,7 @@ async function AmmoPhysics() {
 
 		// TODO change type to is*
 
-		if ( geometry.type === 'BoxBufferGeometry' ) {
+		if ( geometry.type === 'BoxGeometry' ) {
 
 			const sx = parameters.width !== undefined ? parameters.width / 2 : 0.5;
 			const sy = parameters.height !== undefined ? parameters.height / 2 : 0.5;
@@ -39,7 +39,7 @@ async function AmmoPhysics() {
 
 			return shape;
 
-		} else if ( geometry.type === 'SphereBufferGeometry' || geometry.type === 'IcosahedronBufferGeometry' ) {
+		} else if ( geometry.type === 'SphereGeometry' || geometry.type === 'IcosahedronGeometry' ) {
 
 			const radius = parameters.radius !== undefined ? parameters.radius : 1;