- Home /
Is this possible to add effect in exact location where two different objects are colliding?
I tried look for this during this afternoon and I didn't find it.
I'm new to Unity, and I know this kind of question must be a hard one to start by, but what I have in my mind is:
Suppose I have a character prefab being cut by a sword prefab, would it be possible to apply/add some kind of effect or mesh over parts of the character's mesh where collision happened?
In the end we would have something like a scar mark that I'll make fade after 3 seconds or so.
as always, Thanks in advance!
Answer by fafase · Oct 29, 2013 at 03:13 PM
You need to look into decal texture http://docs.unity3d.com/Documentation/Components/shader-NormalDecal.html
Answer by meat5000 · Oct 29, 2013 at 03:15 PM
http://docs.unity3d.com/Documentation/ScriptReference/ContactPoint.html
Try this one for size.
Your answer
Follow this Question
Related Questions
Jittery Collision Detection 0 Answers
the most efficient way to detect colision between objects in a large scene (Strategy Game) 1 Answer
How do I allow an object pass through a wall/object of the same colour/material? 2 Answers
My Javascript collision isn't being detected, please help. 0 Answers
Make invisible wall appear visible upon collision/detection 1 Answer