|
I am currently developing a game for the iPhone and I have a question. First of all, the game is a soccer ball juggling game. The ball starts in the air And is pushed down by gravity and the game ends if it touches the ground. I want to make a script so every time someone touches the ball it bounces up but like a 30 degree range of direction. Any help would be greatly appreciated.
(comments are locked)
|
Im still a bit confused on how to go about doing this. I understand generally what you are saying but I just need help on the base. So I would add a script on the ball saying if it is touched it will add force to the rigid body.
Jun 19 '12 at 06:59 PM
KaiserDE
(comments are locked)
|
|
Okay, I have almost got this working. Raycast now works and it successfully recognizes when I touch the ball. Now all I need to know is how to input the addforce. Here is the code I'm using for the ray cast. How would I add the addforce to that code? Here is the code I have for the addforce. How would I input that code into the previous one?
(comments are locked)
|

Give me a few minutes. Probably within 15 minutes I will need help. Thank you so much though!