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?
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?
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…