- Home /
Instantiated Particles reverse direction. Why?
I created a Particle System and then made a prefab with the particles spraying to the left, but when I instantiate them in the scene the particles spray the opposite way, directly to the right. Does anybody know why this is happening and how I can correct it? Thanx
 #pragma strict
 var ParticleSystemPrefab : Transform;
 function Start() {
     
      Instantiate(ParticleSystemPrefab, GameObject.Find("Tum1").transform.position, Quaternion.identity);      
 
 }`
I've tried taking out "Quaternion.identity" and replaced it with transform.rotation but this didn't do anything. Any suggestions?
Answer by goo-muffin · Sep 13, 2012 at 02:09 PM
#pragma strict var ParticleSystemPrefab : Transform; function Start() {
 instant = Instantiate(ParticleSystemPrefab, GameObject.Find("Tum1").transform.position, Quaternion.identity); 
 instant.transform.rotation.x = 90; //Just add the perfect rotation here } 
thank you. I added this and it also works. Quaternion.FromToRotation (Vector3.back, transform.forward));
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                