> For the complete documentation index, see [llms.txt](https://llando.gitbook.io/ttsystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://llando.gitbook.io/ttsystem/components-prefabs/trackpoint.md).

# TrackPoint

Component and Prefab

The [TrackPoint](/ttsystem/components-prefabs/trackpoint.md) is a component that stores an index of where it is in the track points list. This list can be seen on the [TrackManager ](/ttsystem/components-prefabs/trackmanager.md)component and **MUST** be filled.

This component is used when querying triggers on the [LapTimeTrackingObject ](/ttsystem/components-prefabs/laptimetrackingobject.md)component to detect which track point was passed.

The object that this component is attached to **MUST** have a collider marked as a trigger. This trigger represents the places that objects must pass through. For example, the start line, finish line or any other pass points around your tracks.

You can either add this component to existing objects, create your own or simply drag in the provided TrackPointPrefab into your scene which has everything set up.

{% hint style="warning" %}
**NOTE:** There are two variations of the TrackPointPrefab used for either 3D or 2D projects. These are called the TrackPoint3DPrefab and TrackPoint2DPrefab respectively. Use the appropriate one for your project.
{% endhint %}

The TrackPoint3DPrefab and TrackPoint2DPrefab already contain the script and colliders required for **Complete Time Trial System** to work automatically with the [TrackManager ](/ttsystem/components-prefabs/trackmanager.md)and [LapTimeTrackingObject ](/ttsystem/components-prefabs/laptimetrackingobject.md)components.&#x20;

Adjusting the dimensions of the track point trigger colliders on these is the only setup that is needed to suit the needs of your individual tracks.

{% hint style="info" %}
**NOTE:** A track point is **NOT** the same as a sector. You can think of a track point as two separate positions on your track, and a sector being the actual distance between those two points.
{% endhint %}

<div data-full-width="false"><figure><img src="https://3733049803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKSO40gSd5fO9KWfOWErW%2Fuploads%2FWLdn1JEMH8DpTno1wZcK%2Fimage.png?alt=media&amp;token=8edec969-3029-4a98-85bf-1e4b9835232b" alt="" width="299"><figcaption></figcaption></figure></div>

The number of track points around a given track can differ from the number of sectors based on the track type you have selected. If you have a track with 3 track points A, B and C then the arrows between them represent the different sectors around the track.

Use the example below to see how the type of track can change the number of sectors with the same amount of track points.

| Circular Track                                                                                                                                                                                                                                            | Linear Track                                                                                                                                                                                                                                              |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="https://3733049803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKSO40gSd5fO9KWfOWErW%2Fuploads%2FveMsaVBU2WT697WeVQiS%2Fimage.png?alt=media&amp;token=fa70f38f-0843-4ef1-9d02-a1352b5975d0" alt="" data-size="original"> | <img src="https://3733049803-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKSO40gSd5fO9KWfOWErW%2Fuploads%2FcLYiw6OUIFGOUOQRDDmg%2Fimage.png?alt=media&amp;token=b390b36e-f3ea-461a-9f03-a719420b4020" alt="" data-size="original"> |
| <ul><li>3 track points</li><li>3 sectors</li></ul>                                                                                                                                                                                                        | <ul><li>3 track points</li><li>2 sectors</li></ul>                                                                                                                                                                                                        |
