mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fix physijs/tests/jenga.ts
This commit is contained in:
@@ -85,7 +85,7 @@ initScene = function() {
|
||||
|
||||
// Materials
|
||||
table_material = Physijs.createMaterial(
|
||||
new THREE.MeshLambertMaterial({ map: THREE.ImageUtils.loadTexture( 'images/wood.jpg' ), ambient: 0xFFFFFF }),
|
||||
new THREE.MeshLambertMaterial({ map: THREE.ImageUtils.loadTexture( 'images/wood.jpg' ) }),
|
||||
.9, // high friction
|
||||
.2 // low restitution
|
||||
);
|
||||
@@ -93,7 +93,7 @@ initScene = function() {
|
||||
table_material.map.repeat.set( 5, 5 );
|
||||
|
||||
block_material = Physijs.createMaterial(
|
||||
new THREE.MeshLambertMaterial({ map: THREE.ImageUtils.loadTexture( 'images/plywood.jpg' ), ambient: 0xFFFFFF }),
|
||||
new THREE.MeshLambertMaterial({ map: THREE.ImageUtils.loadTexture( 'images/plywood.jpg' ) }),
|
||||
.4, // medium friction
|
||||
.4 // medium restitution
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user