How to calculate ballistic trajectories

Hi everyone,
I want to calculate and draw ballistic trajectories in Cocos Creator 3.0
For example, i have a ball at (0,0,0) and i want to applyImpulse on rigidBody to move ball to (50, 20, 10).
Please help me how to do this.
Screen Shot 2021-02-07 at 5.46.41 PM

You can refer to this example project: https://github.com/cocos-creator/physics-samples/tree/v3.0

2赞

I opened it with Cocos Creator 3.0 but only show black screen, maybe it written in Javascript.