- Home /
How can I make a Laser Burn on the floor?
Hello, so in my game I have this laser object, it's just a cylinder-type object attached to a head. Now I want to make a laser burn effect on the floor to appear where the laser hits the floor and then have it fade out and delete it self. How would I do this? As always, your help will be appreciated! :)
is the mark going to be straight? if you don't have any polygon constraints, you can raycast from the end of the laser to the floor using the direction of the cylinder, and at the point given, Instantiate small cubes with a default transparent fire texture from unity assets,so that you basically have a little line of them on the floor, as flat as they need to be, and you can also modify the size of them a bit in live and it will give the appearance of something melting a bit. after 5 seconds change the red text to a black texture and after 1 $$anonymous$$ delete the black texture. use particle effects for a bit of smoke around the laser point,-have you done the laser already? That could be 2 transparent red cylinders, one for an outer glow and one for an inner glow.
Perhaps you are looking for Trail Renderer :
http://docs.unity3d.com/Documentation/Components/class-TrailRenderer.html
http://docs.unity3d.com/Documentation/ScriptReference/TrailRenderer.html
thanks alucardj that's new to me too! here s a vid on it http://www.youtube.com/watch?v=I$$anonymous$$jeU_mcla8 there are also 2 types of mesh trail in the procedural demonstration zip file on unity3d.com, extrusion and tron trails.
well that's weird everyone just commented no one bothered to post an actual answer. lol anyways thanks for answering my question!
Answer by lil_billy · Dec 08, 2012 at 03:17 AM
Im doing something similar only my dragon is scorching everything
One way i have found to scorch ground and large walls is to simply instantiate a plane with a transparent burn texture. This is the most generic way to do this in games. then you put a death timer on the plane that cleans it up in a couple of seconds or whenever you want it to
im kind of skeptic on trail renderer because its clean up seems a bit limiting though that depends on your preference.
I just noticed this is similar to zoom domain, but use planes and if you want to you can Lerp/animate color of a texture (over time)so you dont have to change textures (HYPER EFFICIENT AND COOL) scale the plane to whatever you want and attach Particle systems however you want
Answer by stormAster720 · Jun 21, 2018 at 05:42 PM
if you are using a RayCast hit, just add a line that instatiates an Laser prefab on the contact.point
Your answer
Follow this Question
Related Questions
[4.6 UI] Image fading - How to? 2 Answers
Fade GUITexture 1 Answer
Add smooth parts to UI.Image 1 Answer
How to create a laser (With colliders) for a weapon? 2 Answers
Changing Glow Intensity on deltatime 1 Answer