From a9ef098eeaf09a5e9ac9c97b1044aa21929a2d42 Mon Sep 17 00:00:00 2001 From: samreid Date: Sat, 16 Feb 2019 12:13:20 -0700 Subject: [PATCH] Supply z=0, see https://github.com/phetsims/dot/issues/85 --- js/common/model/wire/BatteryToSwitchWire.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/model/wire/BatteryToSwitchWire.js b/js/common/model/wire/BatteryToSwitchWire.js index a30b2c6d..33c0e9a9 100644 --- a/js/common/model/wire/BatteryToSwitchWire.js +++ b/js/common/model/wire/BatteryToSwitchWire.js @@ -33,7 +33,7 @@ define( function( require ) { // y coordinate of the horizontal wire var horizontalY = circuitSwitch.getConnectionPoint( CircuitState.BATTERY_CONNECTED ).y; - var leftCorner = new Vector3( battery.location.x, horizontalY ); + var leftCorner = new Vector3( battery.location.x, horizontalY, 0 ); // add the vertical segment. var verticalSegment;