Hey Guys,

id like to align a cube to a line. For example: i draw a line with x0/y0 and x1/y1…

Now i wanted to align a cube to this line. It should have the same size, the same rotation and the same location.

How could i do this?

thanks

Hey Guys,

id like to align a cube to a line. For example: i draw a line with x0/y0 and x1/y1…

Now i wanted to align a cube to this line. It should have the same size, the same rotation and the same location.

How could i do this?

thanks

i got 1 line. with a start coordinaten and an end-coordinte (x0/y0 and x1/y1).

And id like to align a cube (for example) to this line. With size, length, rotation…

I solved it partially…

```
//set line ends to vectors
Vector3 vecA = new Vector3(data.line_.x, 40, data.line*.y);*_
```

*Vector3 vecB = new Vector3(data.line_.x1, 40, data.line*.y1);
//get our midway point**