Suggestions on acelerometer paddle ball effect

Started by
0 comments, last by Blobberson 15 years, 4 months ago
Greetings, I wish to implement a set of functions so that I can propel an object a variable distance, from a vector of force passed as argument, or even just a simple integer. To clarify, imagine a paddle ball. The ball is sent out based on the amount of force applied, travels a distance, and then comes back. If necessary, I can use a "ball bounce" effect for a somewhat different play style. This is going to be used with an acelerometer device. If I can explain this any more clearly, please let me know. Any suggestions? Thank you in advance!!!!! -joshua
Advertisement
I don't quite understand what you're asking, I think you're asking for the force applied by an elastic string?

float StringForce(float DistanceFromPadde, float k){   if (DistanceFromPaddle < StringLength)       return 0;   return k*DistanceFromPaddle;}


Where K is the spring constant.

This topic is closed to new replies.

Advertisement