|
Hello, I help special needs children focus... I am trying to prove the concept of a pitcher / batter experience to help some of the wheelchair children "experience" athletics. I've scoured the answers and forums, and can get some basic physics going well on the effort. The problem is that I haven't yet discovered how to turn off the initial velocity of the pitchspeed...
Sincere thanks
(comments are locked)
|
|
First, consider what your code does.
You probably want the ball to slow down after being thrown. You probably also want your bat to hit the ball with a certain speed, but to have the ball slow down in the air. Setting the velocity makes it always have that velocity unless you apply something to change that. Forces are also constant. What you likely want is drag - drag will slow down rigidbody motion. What it seems like you want is:
As an alternative, if you really want to use the physics, then why not use them for all of it? Have both the ball and the bat have rigidbodies with appropriate mass and drag settings, etc. If you apply the appropriate forces, velocities, torque, etc. you should get a realistic approximation of how physics would treat these objects. Bear in mind that the bat's motion may be a bit deterministic with this approach depending on how you do it. Thank you very much for the in depth plain english! I will keep going on this and let you know how it unfolds. Sincere Gratitude for the effort!!!
Aug 25 '10 at 10:57 PM
jim Langford
(comments are locked)
|
