[ad_1]
Essentially im on the lookout for a manner (code) to roughly implement a fighter-jet like motion conduct for my non-player entities in my 2D SIDEVIEW (!) shoot em up.
I.e. enemy entities (say jets or planes) cant instantly change their dealing with, velocity or vector however as a substitute ought to have to decelerate and / or fly a curve in a wider angle, probably relying on a properties like “agility” or “maneuverability”.
Gravity just isn’t related for Enemy entities.
The purpose could be to have an enemy Entity that may finally “intercept” on the gamers path to fireplace a projectile. However simply with the ability to transfer in a easy manner would already be an excellent assist.
To be particular, assume the participant is on place 200/0, with its motion vector being normalized -1/0 (i.e. transferring to the left).
The enemy could be at place 400/100, transferring normalized at 1/0 (to the best).
Im at a whole loss on how i might implement such a steering conduct.
If it issues, im utilizing GODOT, so i’ve the inbuild _process with a delta variable.
Any pointers, hyperlinks, code bits could be extremely appreciated.
[ad_2]