Category Archives: Unity

Game Math: Inverse Trigonometric Functions, Slope Angles, And Facing Objects

本文之中文翻譯在此 Prerequisites Trignometry Basics – Sine & Cosine Trigonometry Basics – Tangent, Triangles, And Cannonballs Overview At this point, we have learned about the three basic trigonometric functions: sine, cosine, and tangent. Now, we are going to take a look … Continue reading

Posted in Gamedev, Math, Unity | 1 Comment

Game Math: Trigonometry Basics – Tangent, Triangles, And Cannonballs

本文之中文翻譯在此 Prerequisite Trignometry Basics – Sine & Cosine Overview In the previous tutorial, we have learned about two basic trigonometric functions: sine & cosine. This time, we are going to look at another basic trigonometric function: tangent. Together, these three … Continue reading

Posted in C#, Gamedev, Math, Programming, Unity | Leave a comment

Game Math: Swing-Twist Interpolation (…Sterp?)

This post is part of my Game Math Series. Source files are on GitHub. Shortcut to sterp implementation. Shortcut to code used to generate animations in this post. An Alternative to Slerp Slerp, spherical linear interpolation, is an operation that … Continue reading

Posted in Gamedev, Math, Programming, Unity | 2 Comments

Unity Debug Draw Utility – Now with Shaded Styles

View post on imgur.com This post is part of my Game Programming Series. Complete source code for the debug draw utility and Unity scene for generating the demo animation above can be found on GitHub. Here is a shortcut to … Continue reading

Posted in C#, Gamedev, Programming, Shader, Unity | Leave a comment

Debug Draw with Cached Meshes & Vertex Shaders in Unity

This post is part of my Game Programming Series. Complete source code for the debug draw utility and Unity scene for generating the demo animation above can be found on GitHub. Here is a shortcut to the debug draw utility … Continue reading

Posted in C#, Gamedev, Programming, Shader, Unity | Leave a comment