Suggestions on acelerometer paddle ball effect
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
I don't quite understand what you're asking, I think you're asking for the force applied by an elastic string?
Where K is the spring constant.
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
Popular Topics
Advertisement