Unity question to the devs.
Amadeone
YES Join Date: 2017-05-02 Member: 230194Members
I have a quick question. In Subnautica, when the player uses something stationary, he first moves to the specific position. And here's the question: Have you done it by something like Mathf.SmoothStep for the position and rotation, or there's a build-in Unity function to do it. I can't find it on the Internet, or I can't just search.
Comments
Maybe.
And just as a reminder, LERPs are not to be used for rotations, that's what SLERPs are for.
I know. I sometimes use them, but not often. Gut thanks nonetheless.
Looking to do this I extracted the code, but sadly it was beyond me. Sure, Unity's compression doesn't encrypt the code, but it removes most all the formatting, so you're left looking through an impenetrable lump of code. Hmm... seems that modding can be tougher than making in some ways. Well, at least for mortals.
I have no idea. I don't know, how to mod games. I was asking, 'cause I'd like to do something similar.
Oh ok. You may want to check out the Unity website. You can down load most of it free, along with lots of free video tutorials for making all kinds of games (not sure if they have ones for FPS). Takes a lot of patience though, but it sounds like you've got some background. As for rotation, it seems they favour using quaternions are over Euler angles - so as to prevent gimbal lock.
I'd recommend Brackeys, if you're using Unity. He makes very good tutorials.
No Problem!