x


How do I make a gun project a particle?

I am trying to make a gun, but I dont want an actual bullet to come out like some tutorials say. I did that, and I dont like it. it barely works for me, and it doesn't look good. Instead, I would like to simply project a particle directly in front of the main camera (where my crosshair is). Ive been looking forever, and I dont want to use the machinegun.js found in the fps tutorial) How would I go about doing this? (javascript please)

Thanks in advance :)

more ▼

asked Dec 05 '10 at 01:13 AM

Kazaskater gravatar image

Kazaskater
80 16 16 23

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Make a particle system as usual. Tweek the settings, IE: Make sure it's on one shot, and other things. Make sure it has a velocity so that it actually moves.

Then make it a prefab.

Then use the prefab as a gameobject...

It works =).

more ▼

answered Dec 05 '10 at 01:58 AM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

^^ I used a similar method for a flamethrowing using particles. It works.

Dec 20 '10 at 01:07 PM doomprodigy
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1534
x1175
x446
x329
x321

asked: Dec 05 '10 at 01:13 AM

Seen: 1582 times

Last Updated: Dec 05 '10 at 01:13 AM