- Home /
Question by
SwagCoderElite · Nov 15, 2015 at 09:58 AM ·
particlesparticlesystemshooting
Shooting particle system?
Hi. My problem is when I try to shoot a particle system using this script the particle just flops to the floor. Any ideas would be highly appreciated thanks!
var projectile : Rigidbody;
function Update () { if (Input.GetButtonDown("Fire1")) {
var clone : Rigidbody;
clone = Instantiate(projectile, transform.position, transform.rotation);
Destroy(clone, 5.0);
}
}
Comment
Your answer
Follow this Question
Related Questions
Trouble timing an emission (false/true bool) with variables 1 Answer
how to change the size of a particle 0 Answers
make particles move in world space 1 Answer
Can you change the Velocity Over Lifetime of a Particle System using a Script? 3 Answers
How do I make instantiated particles inherit Transform movement from their parent object? 1 Answer