i am looking for a solution to apply a force on a component (e.g. a ball) and simulate it’s flight path with the influence of gravity.
I added the “PhysicsEntity” to a ball and figured out, that it is falling downwards (along -z-axis). Is there a way to apply a force in x-,y- and z-direction to accelerate the ball and simulate the flight parabola?
Can anyone point me in the right direction to do this?
thanks for your quick answer. What you showed in the video is exactly what I want to do (throwing and additionally catching the ball). How did you simulate the flight path?
I don’t have any experience with python scripting in Visual Components. Might it be possible that you provide the relevant parts of your code, maybe with a short explanation what it does?
Otherwise I guess this task would be a little bit out of reach for my level of knowledge.
Did you also calculate the derivative of the motion equation (Bewegungsgleichung) to continously update the speed of the ball or is it moving with a constant velocity?
The Ball is moving only by the catapult and the vc internal (nvidia) physics-Engine! → I just fire the ball with the same parameters as I use for calculating the Curve…
It was a bit my target to compare the Physics Engine with the mathematic Fundamentals…
do I get you right that the python script is just to calculate and draw the red line, but the actual path of the ball is calculated internally by PhysX?
Is the ball modeled as a physics entity with the physics type “in physics”?
Is the ball connected to or grasped by the catapult or is it just “lying there”?
I don’t but this would be one way to do the same without using the internal Physics-engine and without the beautiful catapult… → But this was not my target!
Hmmm I don’t think you need to calculate the derivative of the equation because in this form you have clearly the Position of the Center of Mass from the ball over time which includes it’s velocity and influence from gravity?!
Without the amazing catapult and the Physics-engine would it not be possible to look at the physical effects when you try to catch the flying ball…
thank you very much for your answer. Your hints guided me in the right direction!
I was able to modell something similar to your catapult with a robot.