Today was another day of nothing-to-do, so I got back into prototyping touch control work in Unity.
When doing the tracing experiment yesterday, the line renderers were surprisingly stiff and limited, especially in the case of multiple line segments. I looked into spawning a circular sprite whenever the targeted touch moved, which worked for slow movements. However, when the finger zipped fast enough, there was a noticeable space between the previous and current touch points. This would not do for a free form line.
What to do? By taking the distance between the touches and a direction, I could fill it in with a series of dots per frame. Suddenly a grouping of dots becomes a free flowing line.
Afterwards, I looked into a tracing guide for certain shapes, and put in a placeholder tracker that would turn red upon tracing. Thus, something like the Healing Touch from Trauma Center is now an iPhone reality:
What next? Well, in order to make interesting and more exact shapes, one could use a tool to actively make these shapes for tracing. I'll be working on an application that can take in clicks as an input and write them to a file for use in the program.
No comments:
Post a Comment