- Edited
Below is an simple example on how to move objects along an Architect curve.
using UnityEngine;
using CurveArchitect.Objects;
public class SimpleAnimationExample : MonoBehaviour
{
public ArchitectCurveObject aco;
public Vector3 speed;
public float resetRange;
Vector3 startPos;
void Start()
{
startPos = aco.localCurvePosition;
}
void Update()
{
aco.localCurvePosition+= speed;
if (aco.localCurvePosition.z > resetRange)
aco.localCurvePosition= startPos;
}
}