- Home /
Draw a Texture from a point to another
Hello I have this problem. i have a gun that use a raycast script and i want to draw a texture ( only one ) that goes from the muzzle of the gun to the hit point of the Raycast. How can i do that??? Thanks :)
One possible solution is to create a plane in your 3d application of choice and skin two edges to bones so that it can stretch. Then Stick one bone to the muzzle and the other to the hit point.
Another way is possibly using `LineRenderer` or `TrailRenderer` if you don't need complex texture.
Your answer
Follow this Question
Related Questions
Raycast questions 1 Answer
Get pixel from Rotated Texture2D 1 Answer
OnGui Texture raycast problem 0 Answers
Animation stops Recast from working 0 Answers
RaycastHit.textureCoord returns vector2.zero when cast in high-poly model (on IPhone). 0 Answers