I'm applying an impulse to a sprite and I currently have an arrow behind the sprite to show which direction the sprite will be shot. But what I want to do is scale the arrow on its x axis to show the power of the impulse. How would I do this? I know how to scale on the x axis but how would I relate this to the touch, to do the impulse in using cgpoint in touchbegan and touchmoved. I want to do this OR show a guide line that will show the path the sprite will travel when the touch has ended. Thanks I'm using spacemanager for the physics.
问问题
100 次