How to make 3D cube charge jump to specific landing platform

Hello I’ve been doing gamedev for 3 months now but I’m stuck here and I’m not planning on giving up.
Could someone please help with this. Thanks.

I have a 3D cube that I want to charge jump when I hold SpaceBar. The part that is confusing me is that I have set some platforms that I want it to jump towards but they are in different directions.

Can someone please assist me on how to Charge Jump the player in the direction that the platform is???

I suggest to select the platform to jump with the direction you look on. You can return the nearest platform that is colliding with the line of sight of the player.