using UnityEngine;
namespace HutongGames.PlayMaker.Actions
{
[ActionCategory(ActionCategory.Logic)]
[Tooltip("test")]
public class test : FsmStateAction
{
public Transform target;
public float smoothTime = 0.3F;
private Vector3 velocity = Vector3.zero;
void Update()
{
Vector3 targetPosition = target.TransformPoint(new Vector3(0, 5, -10));
Fsm.GameObject.transform = Vector3.SmoothDamp (Fsm.GameObject.transform, targetPosition, ref velocity, smoothTime);
}
}
}
I'm only having trouble with THIS line:
Fsm.GameObject.transform = Vector3.SmoothDamp (Fsm.GameObject.transform, targetPosition, ref velocity, smoothTime);