Question by
WhisperXD · May 24, 2016 at 03:21 PM ·
particlesystem
How to rotate particle system with player
need some help, i make to shoot particle system, but it doesn't rotate with the player. When the player turn right and particle system shoot to the right, but when the player turn to the left and particle system shoot to the right. So particle system always shoot to the right, how i can to make particle system shoot with the player rotation ?. this my script :
public void fire ()
{
GameObject prefab = Resources.Load ("Fire") as GameObject; //load particle system from resources
GameObject Fire = Instantiate (prefab) as GameObject;
Fire.transform.position = transform.position;
Destroy (Fire, 3); //destroy particle system
}
so my question is how to make particle system shoot with player rotation, thanks before,,
Comment