Good afternoon! Can I do the following in Oneness.
I have a hose from the pump in the game, I would like its base to be fixed, and the free end could be moved around the screen. How can this be done?
Movable pump hose
- संपादित
Have you seen the stretchyman example? It uses a path and IK for the arms to do something similar. At runtime you would move the IK target around the screen, and the hose would be like stretchyman's arms. You can also manipulate the path handles based on the arm positions, like we do in the path demo:
Spine: Demos: Path constraints
Standalone demo is here:
http://rawgit.com/EsotericSoftware/spine-runtimes/3.6/spine-ts/webgl/demos/stretchyman.html
Source code:
spine-runtimes/spine-ts/webgl/demos at 3.6
More specifically:
spine-runtimes/stretchyman.js at 3.6
Thanks guys! You are a great team!