# Straight spline corner

**URL:** <https://forums.unrealengine.com/t/straight-spline-corner/448983>\
**Category:** World Creation\
**Tags:** edge, unreal-engine, Spline, question\
**Created:** [May 14, 2019, 10:14pm UTC](https://forums.unrealengine.com/t/straight-spline-corner/448983 "2019-05-14T22:14:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ldn127](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ldn127](https://forums.unrealengine.com/u/ldn127)\
**Post date:** [May 14, 2019, 10:14pm UTC](https://forums.unrealengine.com/t/straight-spline-corner/448983/1 "2019-05-14T22:14:59Z")

</div>

Hey,

So I made a basic fence spline, however im not sure how to make the corners only place a straight fence piece, as it currently curves the pieces.

Would be awesome if anyone knows this, thanks 🙂

 ![276860-capture2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/2/592313760867de17e47835e776d20e531e0c80b0.png)

![capture3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/d/84d1fa6a0539fa54853ced5838f2c987afb5d2d0.png)

 ![276874-bp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/e/2be3272e0969a2e9d5328b4e3ec074317d732860.png)

---

<div class="post-metadata">

**Author:** ![Caroo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/caroo/32/1008955_2.png) [@Caroo](https://forums.unrealengine.com/u/Caroo)\
**Post date:** [May 15, 2019, 7:05am UTC](https://forums.unrealengine.com/t/straight-spline-corner/448983/2 "2019-05-15T07:05:28Z")

</div>

You have to calculate the tangents correctly. Now you are using the tangent of the spline and that is why the mesh is forced to bend. If you want a straight piece your tangents must have the same direction. (basically EndPoint - StartPoint of the mesh). But if you also want to have a corner where your spline point is then you have to adjust your mesh positions so that 2 pieces meet exactly in the corner. I hope it helps.

---

<div class="post-metadata">

**Author:** ![BaseReality](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/basereality/32/893179_2.png) [@BaseReality](https://forums.unrealengine.com/u/BaseReality)\
**Post date:** [June 9, 2021, 10:46am UTC](https://forums.unrealengine.com/t/straight-spline-corner/448983/3 "2021-06-09T10:46:05Z")

</div>

THIS is exactly what issue I have been dealing with

> [@Spline Point Help! for procedural Fences](https://forums.unrealengine.com/t/spline-point-help-for-procedural-fences/234297):
>
> Hi I have tried practically every procedural spline and instance static mesh tutorial On youtube and while they work I keep having the same issues over and over again and could use some advice. I Dont want my meshes to be deformed and I want them to be direct lines to each mesh that rotates on the meshs Pivot point EG: the fence post, But im really struggeling make a BP that automatically does this. Maybe by automatically placing a spline point at each section length Under each post would wo…

Can someone please explain How to do this or even better show it IN BP.
