summaryrefslogtreecommitdiff
path: root/Thronefall_v1.0/Decompile/RacerRoll.cs
blob: bb853885101d5032a6bca74b6a648775ada3c1a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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);
	}
}