fixed cable

This commit is contained in:
klemek
2020-12-16 17:13:33 +01:00
parent a7c2f5bc4f
commit ac021a68ea
3 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2180376356050932351}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -0.5}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
+8 -8
View File
@@ -111,13 +111,13 @@ namespace UntitledLogicGame
if (Mathf.Abs(endOr.x) > 0)
{
var middle = (startPos.x + endPos.x) / 2;
_line.SetPosition(1, new Vector3(middle, startPos.y, 0));
_line.SetPosition(2, new Vector3(middle, endPos.y, 0));
_line.SetPosition(1, new Vector3(middle, startPos.y, startPos.z));
_line.SetPosition(2, new Vector3(middle, endPos.y, startPos.z));
}
else
{
_line.SetPosition(1, new Vector3(startPos.x, endPos.y, 0));
_line.SetPosition(2, new Vector3(startPos.x, endPos.y, 0));
_line.SetPosition(1, new Vector3(startPos.x, endPos.y, startPos.z));
_line.SetPosition(2, new Vector3(startPos.x, endPos.y, startPos.z));
}
}
else
@@ -125,13 +125,13 @@ namespace UntitledLogicGame
if (Mathf.Abs(endOr.x) > 0)
{
var middle = (startPos.y + endPos.y) / 2;
_line.SetPosition(1, new Vector3(startPos.x, middle, 0));
_line.SetPosition(2, new Vector3(endPos.x, middle, 0));
_line.SetPosition(1, new Vector3(startPos.x, middle, startPos.z));
_line.SetPosition(2, new Vector3(endPos.x, middle, startPos.z));
}
else
{
_line.SetPosition(1, new Vector3(endPos.x, startPos.y, 0));
_line.SetPosition(2, new Vector3(endPos.x, startPos.y, 0));
_line.SetPosition(1, new Vector3(endPos.x, startPos.y, startPos.z));
_line.SetPosition(2, new Vector3(endPos.x, startPos.y, startPos.z));
}
}
+1
View File
@@ -7,3 +7,4 @@ TODO
-(3) state gates
-(5) cable management
-(5) buses
-(?) find a name