- Home /
Question by
Persona · Jan 13, 2011 at 07:54 PM ·
functiondamagetrailrenderer
Trail Renderer Damage
Is there some way to set up a damage function if an object hits a trail renderer?
Comment
Best Answer
Answer by Goody! · Jan 13, 2011 at 10:55 PM
I'll toss out a quick answer and say yes. You need a way to determine where the points are that the trail renderer is drawing between, then do a ray cast along the same points and have a script that causes damage to anything touched by the raycast.
We do something similar but use a line renderer instead.
So cast a ray and then a line rendered and if raycast hit, do damage?
Your answer
Follow this Question
Related Questions
Variable Doesn't Update in "Update" function 0 Answers
Overloaded functions fail to call 1 Answer
Floor to damage player 1 Answer
How to make car damage like in gta 4 3 Answers