Like let’s say i am aiming a projectile weapon forwards, i want it to move in a way that it curves upwards and then downwards towards the direction I am aiming( to make it feel more realistic).
i’m relatively new to the site, so some advice would really help.
should i use some form of tween or variables???
You could tween it but then comes the question what if it hit ceiling
Or wall?
You would make logic to stop tween and test if that work
But then based on angle you would need to give different values for X and Y tweens (you would need to use two tweens)
100% doable just if you are new idk if that is best idea
MAYBE do something stupid like i did How Do I Add KnockBack - #15 by ZeroX4
Where there is still option to use physics behavior
On other hand this is aiming but imagine his player is your bullet
You don’t really need line for aiming you just want from his tutorial how to set trajectory for object
i usually link the force to its angle and then increase or decrease its angle. If you want gravity then - if its between 270 and 360 or 0 and 90 add 1 or 2. if its between 90 and 270 subtract 1 or 2 - or use a var.
Can you give a example?
Thank you
I’ll check out the video later.
i did it in this one a few times…