Browsing articles tagged with " math"
Dec
21
2015

Matrix Playground Shader

Finally decided to try shader matrices.. (because having issues with custom billboard shader) Doing Translate, Scale, Rotations with matrix operations seems quite simple actually! Would had been totally lost without these two links: http://www.codinglabs.net/article_world_view_projection_matrix.aspx http://www.gamedev.net/topic/610115-solved-rotation-deforming-mesh-opengl-es-20/#entry4859756 How to use the shader: – Get the source below, […]

Dec
17
2015

Get Angle Between 2 GameObjects in Degrees (0-360)

Small helper script to check angle between 2 objects in degrees (and in between 0-360). It also includes test code for atan2Approximation, have not measured if there are any benefits using it.. Also note [ExecuteInEditMode], so it runs in editor without playmode. This file contains […]

May
20
2015

Rotating Sphere By The Moved Distance

How to rotate sphere based on the distance its moving. As in: http://docs.autodesk.com/3DSMAX/12/ENU/3ds%20Max%202010%20Tutorials/files/WS1a9193826455f5ff-3a29af00119afd28e95-4398.htm Source: *Angle formula solved by ‘Denamond‘ This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that […]

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.