diff options
Diffstat (limited to 'Thronefall_v1.0/Decompile/RacerRoll.cs')
-rw-r--r-- | Thronefall_v1.0/Decompile/RacerRoll.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/RacerRoll.cs b/Thronefall_v1.0/Decompile/RacerRoll.cs new file mode 100644 index 0000000..bb85388 --- /dev/null +++ b/Thronefall_v1.0/Decompile/RacerRoll.cs @@ -0,0 +1,16 @@ +using Pathfinding.RVO; +using UnityEngine; + +public class RacerRoll : MonoBehaviour +{ + public RVOController rvo; + + public float speedMultiplier = 90f; + + public Transform targetTransform; + + private void Update() + { + targetTransform.Rotate(rvo.velocity.sqrMagnitude * speedMultiplier * Time.deltaTime, 0f, 0f, Space.Self); + } +} |