I need to launch a ball at a target and, based on the physics of the launch parameters, have the ball hit the target at a particular location. Ideally, I’d like the physics engine to handle this, but PhysX is not up to the task. When launched with an impulse, the ball DOES NOT hit the target where it should, and its errors do not vary consistently with launch parameters, which means they can’t easily be compensated for.
It seems I should be able to control the ball’s motion via script (MovePosition), then upon collision with the target, hand off control to PhysX to control the subsequent bounces. But I’ve spent LOTS of time on this, and just can’t get it to work.
Has anybody ever tried this before, or am I the first? If you’ve ever successfully switched between script and PhysX control, please let me know how you did it. If there’s some sample code somewhere I’ve not been able to find, please point me in the right direction. Thanks.