Question by
Vergil27 · May 26, 2016 at 12:57 PM ·
rotationpositionparticlesystem
Problem with Particle system rotatio and location
need some help, i make shooting particle system and i want to configure prticle system location/rotation with my own.
so this my script :
public void ()
{
GameObject prefab = Resources.Load ("Fire") as GameObject;
GameObject Fire = Instantiate (prefab) as GameObject;
Fire.transform.position = transform.position; // playing with player position
Fire.transform.rotation = transform.rotation; // playing with player rotation
Destroy (Fire, 5); // destroy particle system
}
how i can to configure particle system rotation/position with my own, but always with player, thanks for attention :D
Comment
Your answer
Follow this Question
Related Questions
Unable to get world position of object after rotation 0 Answers
How can I make an object transform to given position and rotation 2 Answers
Rotating and Positioning Gameobjects 0 Answers
How To change the 3DstartRotation of a ParticleSystem, using another GameObject Rotation? 1 Answer
Update child gameobject positions when rotating parent gameobject 0 Answers