# SplineMesh GetRollAtDistanceAlongSpline returns 0

**URL:** <https://forums.unrealengine.com/t/splinemesh-getrollatdistancealongspline-returns-0/471241>\
**Category:** World Creation\
**Tags:** Procedural-Generation, spline-point, roll, spline-mesh-componen, unreal-engine, question\
**Created:** [September 12, 2020, 4:17pm UTC](https://forums.unrealengine.com/t/splinemesh-getrollatdistancealongspline-returns-0/471241 "2020-09-12T16:17:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Metalwrath](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/metalwrath/32/741996_2.png) [@Metalwrath](https://forums.unrealengine.com/u/Metalwrath)\
**Post date:** [September 12, 2020, 4:17pm UTC](https://forums.unrealengine.com/t/splinemesh-getrollatdistancealongspline-returns-0/471241/1 "2020-09-12T16:17:20Z")

</div>

Hello,

I use spline as procedurally generated road, so spline is generated during runtime and new points are added (while older points are removed) as game continues.

I need to get roll at certain locations to adjust roll of cars on the road. I move my cars along spline by using GetLocationAtDistanceAlongSpline and it works without problems. But get roll method returns 0 no matter what.

I set start and end roll of spline meshes by using SetStartRoll and SetEndRoll methods of SplineMesh. But I could not find how to transfer this information to spline itself.

Thanks.
