Hi. I need to make invisible shield for spaceship, for my upcoming game. This shield should copy the shape of the ship. I don't want any bubble or circle around the spaceship. I think polygon2D collider could be used for this, for the shape and the collision detection. I want from this shield to make an effect, when the bullet collides with it. Could you please tell me, how should I approach the development of such shield ? Thank you very much.
Hello, yes add a polygon2D and make a C# script with a OnCollisionEnter2D your bullets need a collider too. https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnCollisionEnter2D.html
How can I spawn an effect, on the place of an impact ? I would like to spawn an effect of energy that slowly vanishes, like the impact on shield would.
you can follow this tuto and adapt to your shield https://gamedevelopment.tutsplus.co...od-2d-lightning-effects-in-unity-c--cms-21275 it is the result of this tuto