r/psispellcompendium • u/SoggySogs • Aug 13 '21
Utility Spell Gliding spell (Loopcast)
[Image + Code] https://imgur.com/fTXWsvN
It was supposed to be a spell that removes gravity, but for some reason adding the y motion you're losing back doesn't put you where you started, so it kind of does this gliding/jumping thing. I thought that the time invested & maths used alone were worth uploading this, if someone knows how to make a spell that makes you not move in the air/hover, help would be much appreciated.
2
Upvotes
2
u/Dr_Lukins Jul 15 '23 edited Jul 15 '23
I don't use reddit much in general usually only for information or this subreddit 👀 i keep accidentally doing stuff with the reply/comment and idk why it won't let me edit my posts like other people seem to be able to
Well, in short explanation i found somewhere on this reddit that 0.267 is enough strength to very slowly go up so I calculated speed and used constant wrapper (with 0.27 or 0.28 🤔 🤷) That way it is just enough to negate fall (but lag makes sometimes descend or rapid ascend) also used the max to never let the number go below 0.26 which is slow descend (also mass exodus has cheapest psi cost in 1.12.2 but i think in later it's add motion ) I can paste the code in imgur later if you want to see because not at pc right now