今回はunityで使う座標の関数について書きます。 初めに補間について 補間とはAという点があり離れた場所にBという点があった場合、点Aと点Bには間が空いています。その間の数値を近似的に求めることです。 「補間」をすることによりコンピュータは2点 ...
asyncなメソッド内でLerpをつかってなめらかに位置を動かす方法について、意外と情報が見つからなくて苦戦したので、書き残しておきます。 カメラの位置(Offset)と画角(OrthographicSize)をなめらかに動かしたくて作ったスクリプトです。現在位置がoldOffset ...
If you're using Unity and you still think Mathf is just for Lerp()… you're leaving power on the table. Most devs treat the Mathf library like a toolbox with two tools: Clamp. Lerp. That’s it. But ...
Unityを学ぶための動画を集めたサイト「Unity Learning Materials」。ユニティ・テクノロジーズ・ジャパンの安原氏が、ゲーム制作に使う数学について解説しました。パート6のテーマは「Lerp(線形補間)」。その本質が漸化式にあることから、数列の一般項を ...
Level up your game development skills with Unity's Lerp function! 🎮 Discover the magic of smooth interpolation and create dynamic, eye-catching animations that propel your gameplay to new heights!
Linear interpolation is a very common operation in game development. It is present in standard libraries of some general purpose languages (C++, C#, Zig) and all shading languages (HLSL, GLSL, Slang).