|
From: Richard H. <rj...@za...> - 2017-10-28 18:28:52
|
> another option would be to add a custom animation node for touch
> surfaces, which specifically sets the needsUV flag, and knows
That's a much better idea; I've implemented a SGTouchAnimation using
arguments (no Emesary) and it works great. I'll commit shortly for review.
<animation>
<type>touch</type>
<visible>true</visible>
<object-name>VSDImage</object-name>
<action>
<touch>0</touch>
<repeatable>false</repeatable>
<binding>
<command>nasal</command>
<script>print("touch input
(",cmdarg().getNode("x").getValue(),",",cmdarg().getNode("y").getValue())</script>
</binding>
</action>
</animation>
|