Any help would be Greatly appreciated; I have been having this problem for over a week.
here is my current code attempt, made from what I could find in other unity answers and forums, problem is all of the particles apear at the same position, even when the position smoothly changes, all of the particles move as if attached to the hit point instead of leaving a trail behind.
function EmitAtPos(position: Vector3, amount: int){
particleSystem.Emit(amount);
var particles: ParticleSystem.Particle[] = new
ParticleSystem.Particle[amount];
if (particleSystem.GetParticles(particles) < amount) {
Debug.Log("Hey!");
return;
}
for (var i: int = 0; i < amount; i++) {
particles*.position = position;*
}
particleSystem.SetParticles(particles, particleSystem.particleCount);
- Debug.Log(position);*
}