Profile image

Simplifying Things

76 MidnightSun  3.7 years ago

TLDR; please add
VelocityX
VelocityY

TargetAngleX
TargetAngleY

All measured Relative to the cockpit and not globally.

The text down below will explain in detail i urge you to read it :)

I remember asking for these Targeting parameters for Funky trees a while back. i deleted my main account shortly after. so this is why this is my first post.

Anyway, The new codes are nice, but overly complicated. what would help this is

1 add new parameters called

TargetAngleX
and
TargetAngleY

These pretty much mean how far in degrees the target is away from the crosshair on the x and y axis. not the global axis, but the axis of your plane. this will allow us to make a simple rotator and just add one of those parameters and multiply it with a bit of the target distance for some lead.

This would simply solve the issue of having very complicated code just to fire the gun in the direction you want.
so it would look like this:

TargetAngleX*(TargetDistance/50) for some simple follow with some lead.

some target speed would be good for that too but it does not matter that much. whatever you use for your normal lead prediction in the game,

Also.
As i've been developing some maneuvering system for making spaceships without wings fly solely on thrusters i've discovered that once your AngleOfSlip or AngleOfAttack goes slightly above 180 degrees the entire math starts bugging out. i use those two codes to keep the ship from slipping vertically and laterally.

What i would like to request for that is a super simple solution.

VelocityX and VelocityY

Measured Relative to the cockpit not global. There is no real way to substitute this. and it's needed. i for example would like to make those ships public once they are usable. Which they are not since once you go backwards, you will start spazzing out.

Altitude Rate can also not be used since it will stop working once you roll

AngleOfAttack and AngleOfSlip also stop working properly when standing still and can only be used to measure those two velocities when moving. so hovering is impossible.

I hope you can fulfill my selfish request. i really just made an account for this.

Thank you.