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

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Destroying individual particles with Raycast or Linerender in Unity3d

Destroying individual particles with Raycast or Linerender in Unity3d

View previous topic View next topic Go down  Message [Page 1 of 1]

jigwiz


Member [Lv. 0]
Member [Lv. 0]
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?

confused

View user profile

PitbullM

avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Take a look here Wink



https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnParticleCollision.html

https://unity3d.com/learn/tutorials/topics/scripting/particle-collisions

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

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