- Home /
How do i make a Railgun style effect with a raycast shot?
Im having problems with creating a railgun style beam, i've looked into into and to no avail and with line rendering it seems like i need to add a pointless object . My gun shoots, applies force and has spark and explosions effects....BUT.... i would really like to have a glowing beam when i shoot.
help please!! :D
It is difficult to understand what you want here. LineRenderer or TrailRenderer seems like what you would want. Don't understand the "pointless object" reference.
Could you post a screenshot of what you had in $$anonymous$$d? Also it is not clear if you need help with the scripting, or creating the 3d asset, or all. Do you need shaders as well?
(SCREENSHOT) thats the kind of beam i have in $$anonymous$$d
ikelaiah thats the thing im not to sure wether i need a script or what... and as for the "pointess object" i mean i have my script that fires a ray cast. it hits objects, applies force to rigid bodies, etc but everywhere ive looked if i want a beam i need to add a tiny bullet like object (which i dont want "hence pointless")with the renderer attached to that.
If we had a hash-tag system, for this question i'd go:
#linerenderer
Answer by TheBrian 666 · Jul 08, 2013 at 06:15 PM
wel after 3 days of searching and countless attach to an object.... I DID SUCH A THING! :P wasn't as much a pain as i thought. i took gravity off and removed colliders.
discard everything but the beam i think it worked...
thanks guys!! :D!
Now that you have an answer (even though you didn't explain it), you should mark this answer as correct, so this question get's done :)
I would love to get the solution to this, as I've been searching around for hours n hours n hours with no result. I did something with trail renderer and it looks so poor. Look at my own question for more info!
Your answer
Follow this Question
Related Questions
shooting multiple enemies using raycast 2 Answers
Straight Raycast Shooting 1 Answer
raycast spawn problem 0 Answers
my game isnt taking damage when a raycast hits? 1 Answer
Using raycast gun to take down life of enemy when shot 1 Answer