XaiJu
Megan Fox
Megan Fox

patreon


How to physically keep a thing at a specific tilt

Yikes, I missed a month! I am SO sorry about that. I, uh, basically had a major medical thing that involved food actually getting stuck in my throat, and then some doctor visits, and then a GI doctor visit where they stretched the throat out, and then I'm still recovering from general viral illness, and woof.

So! This month you get TWO code posts, one of which $1+ gets to see, and the other is only for $3+ up. So everyone gets a code (yay!), and code-tier gets two codes (double yay!)

Now then, this code here: https://pastebin.com/5NkhKnSb 

What you use this for is when you have a physical rigid body that is pointing god knows where, and you need to gradually and smoothly make it point in a given direction, over a specified window of time, and without making the world explode.

This is one of the bread and butter functions in my current codebase. I use it often. Why? Well... we haven't announced the next game. But when we do, you'll see why :D

Have fun!


More Creators