Hi everyone.
First of all I’m a newby at scripting and I am trying to learn by experimenting with the iPhone examples and doing different things with them.
The first thing I am trying to do is apply a smooth follow cam script to the ball in the roll-a-ball example and the apply force to move the ball around based on it’s relative position, basically the same kind motion that is in the Rollit game. In the Controller Script I’ve changed the line
rigidbody.AddForce(dir * force);
to read
rigidbody.AddRelativeForce(dir * force);
changing the force applied from global coordinates to local and the result would leave me to believe that as the sphere rotates the force applied rotates with it which pretty much makes it uncontrollable. :shock:
What I’d like to be able to do is apply a force to the ball relative to the camera view that is following it.
Any help would be most appreciated…