# MOST Road Move

A touch-friendly straight-road movement system with smooth control, rotation direction support, camera follow, and road-bound constraints.

All Runner templates move controls use MOST Road movement

{% embed url="<https://youtu.be/6BF9zQ7p5y8>" %}

[Check MOST\_Runner templates](/most-in-one/general/runner-template.md)

{% hint style="info" %}

* <mark style="color:blue;">**This System doesn't require an Input Controller to receive commands (MOST Controller or any other input system)**</mark>
  {% endhint %}

## <mark style="color:red;">API reference</mark>

{% hint style="success" %} <mark style="color:green;">**All public properties can be updated at runtime, and the changes will be set immediately.**</mark>
{% endhint %}

<pre class="language-csharp"><code class="lang-csharp">// Next to each line shows the return and set data Type 

// Functions
// main behavior enables and disables the system
Most_RoadMovement.EnableState(bool Enable);

//_______________________________________________________________//

// The movement speed on the forward axis
[Min(0)] Most_RoadMovement.ForwardSpeed return or set float

// the max speed on x axis using touch 
// (will be used as speed if it depends on touch TouchSensitivity and maxSpeed if SmoothMovement enabled)
[Min(0)] Most_RoadMovement.MaxSideSpeed return or set float

// the strength of the reaction when touching the screen
[Min(0)] Most_RoadMovement.TouchSensitivity return or set float

// instead of an instant jump from one point to another, movement will be smoother
Most_RoadMovement.SmoothMovement return or set bool

// How smooth is the movement going to be
<strong>[Range(0.01f, 0.5f)] Most_RoadMovement.MovementSmoothing return or set float
</strong>
// if enabled, the object will rotate toward the side movement direction
Most_RoadMovement.EnableRotation return or set bool

// if enabled, the MaxSideSpeed will be used to rotate the object and moves depending on rotation (using ForwardSpeed)
Most_RoadMovement.RotateAffectMoveDirection return or set bool

// the max angle the object can rotate to (in positive and negative directions)
[Range(0, 90)] Most_RoadMovement.MaxAngleOffset return or set float

// Min and Max side positions can object go to
Most_RoadMovement.RoadConstraints return or set Vector2()
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://solo-player.gitbook.io/most-in-one/most-systems/most-road-move.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
