private void Update() { // Early out, if any paths are null if (!XPath || !YPath || !ZPath) { return; } Vector3 targetPos = x.Evaluate(t) + y.Evaluate(u) + z.Evaluate(v); transform.position = targetPos; }
private void Update() { this.transform.position = core.Evaluate(t); this.transform.rotation = PathUtility.Twist(core, t, twist, t); }