- Home /
Angry Birds dotted trajectory for the slingshot
Hello everybody . So i used this script for a game that i`m trying to make . http://forum.unity3d.com/threads/86472-Drag-Shot-Mover-Get-your-physics-objects-moving!?highlight=slingshot
It works perfectly but i would like to change the range indicator (it`s a circle or hexagon to be exact) to a dotted trajectory line like in angry birds .
Thank you in advance .
If you have an hexagon it probably joins points with edges, ins$$anonymous$$d draw sphere at those points and remove the lines.
ok so i dont know if i didnt explain correctly what i needed but i dont think i need that . I want to remove the hexagon range indicator completely!
[This is what i have](/storage/temp/25964-screenshot+2014-05-01+12.10.35.png)
This is what i want to have
[1]: /storage/temp/25964-screenshot+2014-05-01+12.10.35.png
There is no pic to see what you have already. As for the angry birds dots it is just the projectile motion equation at discrete times.
Answer by Julie Raiyani · Jun 27, 2014 at 02:46 PM
Hello sylar93,
Here is the perfect solution of your problem , visit below link.
How to display projectile trajectory path in Unity 3D?
Thanks, Julie.
Thanks for the link! this is perfect (even 3 years later )
Answer by perchik · May 01, 2014 at 03:17 PM
I don't have a clue what you're talking about with the hexagon, but it sounds like you just need some kind of LineRenderer with a dotted texture. Use some kind of loop to add points to the linerender with a parametric form of the projectile equation. You can add a texture that is half transparent to make a good dashed line.
Here's what I through together real quick by manually setting some points on the line
using these settings:
Notice my texture is a circle followed by transparent space
Your answer
Follow this Question
Related Questions
How to draw 3D text from code 4 Answers
Draw to follow 5 Answers
How to draw a (helix shape) road for moving objects in unity3d? 0 Answers
Color Handles.DrawLine 1 Answer
Draw a circle on touchscreen 1 Answer