Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by TheBrian 666 · Jul 07, 2013 at 05:45 PM · raycastfpsshootingbeam

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

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image robertbu · Jul 08, 2013 at 12:09 AM 0
Share

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.

avatar image ikelaiah · Jul 08, 2013 at 12:27 AM 0
Share

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?

avatar image TheBrian 666 · Jul 08, 2013 at 08:40 AM 0
Share

alt text

(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.

quakelivescreenshot.jpg (122.0 kB)
avatar image Benproductions1 · Jul 08, 2013 at 11:11 AM 3
Share

If we had a hash-tag system, for this question i'd go:
#linerenderer

avatar image LightSource · Jul 08, 2013 at 06:00 PM 0
Share

Or trail renderer. http://tinyurl.com/m36uemf

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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!

alt text


screen shot 2013-07-08 at 19.02.38.png (486.7 kB)
Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Benproductions1 · Jul 09, 2013 at 12:03 AM 0
Share

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 :)

avatar image Jishmael · Nov 13, 2013 at 09:24 PM 0
Share

Please can you explain how you did it?

avatar image apfelstrudl · Jun 09, 2014 at 12:31 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

21 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges