bugfix
This commit is contained in:
@@ -53,12 +53,12 @@ public class StackerCrane : ComponentBase
|
||||
var fy = (int)from.GetInt("y");
|
||||
var fz = (int)from.GetInt("z");
|
||||
horizontalStart = new Vector3(horizonObject.transform.position.x, 0, startposition.z);
|
||||
verticalStart = new Vector3(-0.03920534f, -0.2531985f, verticalObject.transform.position.z);
|
||||
verticalStart = new Vector3(-0.03920534f, -0.2531985f, verticalObject.transform.localPosition.z);
|
||||
var to = crane_movement.GetDataObject("to_position");
|
||||
var tx = (int)to.GetInt("x");
|
||||
var ty = (int)to.GetInt("y");
|
||||
var tz = (int)to.GetInt("z");
|
||||
var rackp = rack.cellComponents[(tx, tz, ty)].transform.position;
|
||||
var rackp = rack.cellComponents[(tx, ty, tz)].transform.position;
|
||||
//Debug.Log($"{tx},{ty},{tz}");
|
||||
horizontalTarget = new Vector3(rackp.x, 0, startposition.z);
|
||||
verticalTarget = new Vector3(-0.03920534f, -0.2531985f, rackp.y);
|
||||
@@ -88,7 +88,7 @@ public class StackerCrane : ComponentBase
|
||||
var x = (int)position.GetInt("x");
|
||||
var y = (int)position.GetInt("y");
|
||||
var z = (int)position.GetInt("z");
|
||||
var rackp = rack.cellComponents[(x, z, y)].transform.position;
|
||||
var rackp = rack.cellComponents[(x, y, z)].transform.position;
|
||||
ft = 0f;
|
||||
forkTarget = new Vector3(-rackp.z+startposition.x,0, 0.3f);
|
||||
Debug.Log($"t{forkTarget}");
|
||||
|
||||
Reference in New Issue
Block a user