# Rail Rotation

For example, a driving car asks for the need to automatically rotate the car along the spline direction, because manually adjusting the rotation for all keyframes can be time-consuming.

![](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/A1bVKVNYFqpbucEavZqZ/48365625.png)

Therefore, the timeline offers a feature called "Rail-rotation". To activate the Rail-Rotation for an Object:

1. Select the Object-Track.
2. Within the Settings-Window, check "UseRailRotation".
3. Adjust the "Rail\_Offset" property to point the car in the right direction (in this case -90°).

![](https://content.gitbook.com/content/SJPsyh5CBOise9BtVNGO/blobs/0LZevv0AtcPnZDg9UJAB/47906858.png)

Now the rotation will automatically follow the spline direction on all axes.
