1
edit
(12 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
== Group Work By == | == Group Work By == | ||
<li>Florian Froger (Unity & TouchOSC App Implementation) | |||
<li>Florian Froger (Unity & | <li>Jonas Jülch (Unity & TouchOSC App Implementation) | ||
<li>Jonas Jülch (Unity & | |||
== OSC Signal Diagram == | == OSC Signal Diagram == | ||
Line 31: | Line 30: | ||
Touch OSC App | Touch OSC App | ||
We used the App "TouchOSC" for Android to control our Kitten in Unity. The design of the layout is inspired by the classic Nintendo controller. | |||
Effectively we used the "Directional Pad" to move our Kitten on the x and z axis and the blue button to jump. | |||
TouchOSC is communicating directly with Unity via OSC. | |||
[[Image:OSC_APP.png|600px]] | [[Image:OSC_APP.png|600px]] | ||
== Unity TouchOSC Receiver Code == | == Unity TouchOSC Receiver Code == | ||
This is the script we used to get the connection between Unity and TouchOSC established. | |||
In the "function update" part we move the player around. We receive the variables for this function via the function "AllMessageHandler" which you can find in the second part of the code. | |||
We used the following Unity Scene and it's included scripts as a template | |||
https://github.com/heaversm/unity-osc-receiver | |||
[[Image:OSC_Touch_Receiver_Code.jpg|800px]] | [[Image:OSC_Touch_Receiver_Code.jpg|800px]] | ||
== Video Doc == | |||
[https://www.youtube.com/embed/RNqw7ycQNXA | |||
] |
edit