summaryrefslogtreecommitdiff
path: root/FollowTransformVelocity.cs
blob: 584846c4f12bcfca1523c0c1d75587a83ebfac4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using UnityEngine;

public class FollowTransformVelocity : MonoBehaviour
{
	public TransformVelocity transformVelocty;

	private void Start()
	{
	}

	private void FixedUpdate()
	{
		base.transform.position = transformVelocty.transform.position + transformVelocty.velocity * 5f;
		base.transform.rotation = transformVelocty.transform.rotation;
	}
}