ソースを参照

RapierPhysics: Hardcode package path inside the wrapper.

Mr.doob 2 年 前
コミット
e60da97b59

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

@@ -1,6 +1,6 @@
-async function RapierPhysics( path ) {
+async function RapierPhysics() {
 
-	const RAPIER = await import( path );
+	const RAPIER = await import( 'https://cdn.skypack.dev/@dimforge/[email protected]' );
 	
 	await RAPIER.init();
 

+ 1 - 1
examples/physics_rapier_instancing.html

@@ -43,7 +43,7 @@
 
 			async function init() {
 
-				physics = await RapierPhysics( 'https://cdn.skypack.dev/@dimforge/[email protected]' );
+				physics = await RapierPhysics();
 				position = new THREE.Vector3();
 
 				//