I have these little glowing things that resemble fireflies… sorta… but anyway I want to give it sort of an organic path, but it just takes way to long to do it in unity’s animation thing. Is there a way to be able to just draw points onto the editor? Or at least let me set a point and my firefly flies from point to point?
using UnityEngine;
using System.Collections;
public class Wander : MonoBehaviour
{
public float speed = 4.0f;
private Vector3 turn = new Vector3(0, 0, 0);
void Start()
{
}
void Update()
{
turn += Random.onUnitSphere * 0.7f * Time.deltaTime;
turn.Normalize();
transform.forward += turn;
transform.forward.Normalize();
transform.position += transform.forward * Time.deltaTime * speed;
}
}