on a ipad touch screen i want to show an arc of where i am going to shoot. the arc will depend on how much i pull my finger back from a starting point.
i have all the shooting in place but how can i show the target arc befor i let go and shoot?
any one?
I have an object that when i touch it and drag my finger back it measures the distance i am dragging and uses the distance as a force number.
on touch ended i apply the force to the object like this.
obj.rigidbody.velocity.x= arrowthing.transform.forward.x*(force );
obj.rigidbody.velocity.y= arrowdirector.transform.forward.y*-10;
obj.rigidbody.velocity.z= arrowthing.transform.forward.z*(force);
it always shoots y force of -10
the other two the velocity depends on how far back i pull my finger from my touch start point.
I would like to do this .
as i pull my finger back, draw an arc based on the forces i am applying to predict the path my object will travel and land when i on touch end it.