Lurker News
Back to discussion

Comment by wtallis

wtallis2 replies#
Would a physics engine actually make it any easier to solve this inverse problem? Simulating where the ball ends up relative to the hoop after bouncing off the board is the kind of forward problem that I tend to think of physics engines as designed for, but the problem here is to (repeatedly) determine what angle of board would yield the desired post-bounce trajectory. Does something like Bullet have a flexible enough inverse kinematics solver to handle this kind of problem?
thebean11#
I'm guessing a brute force approach wouldn't take that long for this problem
mlyle1 reply#
You could definitely improve / take advantage of rim interactions, for instance, and more easily not have the problem he has with the lower corners.
wtallis1 reply#
There are obvious ways that the physics engine might be able to capture more effects than a simple analytic solution of parabolic trajectories. But if it only lets you run the simulation forward to get a trajectory from initial conditions, then you now have a numeric optimization problem as the body of the inner loop of another optimization problem.

If the physics engine can't efficiently solve the inverse problem here, it is probably only well-suited for simulating a final solution for validation, not iterating over the rather large space of possible shot trajectories times possible backboard angles at the point of impact.

eternauta3k1 reply#
> you now have a numeric optimization problem as the body of the inner loop of another optimization problem

Isn't solving the physics problem a straightforward ODE integration?

Continue this thread — 1 reply