Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Go down
Member [Lv. 0]
Member [Lv. 0]
Posts : 1
Points : 434
Rep : 0
Join date : 2017-05-15
View user profile

Destroying individual particles with Raycast or Linerender in Unity3d

on Mon May 15, 2017 11:04 pm
I am developing a Unity game in which a character will shoot individual objects and they are destroyed on the impact. For the objects, I used a particle system to generate them. This is a 3d game. The character shoots a beam at the objects created by the particle system. I want these objects to be destroyed/inactive when the beam touches them. The particle system has "collider" enabled.

I'm fairly new to unity so I haven't executed this before. How do I destroy the individual particles when the character shoots them. After some research, 1 solution that I found was to add a collider or mesh to the linerenderer that the character generates when shooting but this did not work out well. I didn't find this exact issue addressed on the Unity3d forum and my question regarding this remains unanswered.

Can anyone offer some insight in to this and hopefully point me in the right direction?

Posts : 53
Points : 1530
Rep : 11
Join date : 2015-01-18
Age : 41
Location : Italia
View user profile

Re: Destroying individual particles with Raycast or Linerender in Unity3d

on Mon May 22, 2017 12:55 pm
Take a look here Wink


Back to top
Permissions in this forum:
You cannot reply to topics in this forum