While developing, sometimes you will find yourself in a situation where you face two approaches. The first approach has an easier concept but requires much more manual work (copy-pasting, if-else statements, etc.). The second approach has a much harder concept (math and equations) but easier implementation. Especially in animations, believe it or not, 90% of the time, you have to take the second approach. Otherwise, you will not get the expected results! You will have flickering results! Sometimes it will be laggy! Also, it won't be interactive and dynamic. I made this effect in Unity (My first project at the hanging house). I had two approaches: the first approach (easier concept but harder implementation) was to divide the posters into rows, then make an independent path for each one of them. Each row would follow the corresponding path. That looks fine, right? Believe it or not, I spent three weeks on this approach. I even made an animation tool that changes the path in real time, all of this to make it a bit similar to how it is now. After that, another concept came to mind. Actually, I found a new animation concept! (Later, I discovered that this idea already existed) To summarize in a small sentence: speed vector equals distance vector! Speed is the first derivative of x with respect to time, and distance is just a linear function of x. By solving this equation, it is possible to get the equation of x based on time. This was the core concept of the animation. The next core concept I used was circle tangent: basically, when a poster enters the artificial region circle I made, this circle will add to the poster’s velocity toward its edge. These are the bold lines about how this animation works! Look how simple it is to implement! The implementation time for this idea was less than three days. It is just too simple to implement, but it gives much better (dynamic and interactive) results in such a shorter time. This effect was done from scratch in Unity. I didn't use any animation library. It is just Unity and C#! don't limit your self, don't think how others did it, or is there any existing library for this. Just go and do it your self in your way! and believe me, this how you grow, and this how you learn! ------------------------------------------------------------------- Please don't forget to include our brothers and sisters in Gaza in your prayers. Currently, they are going through really tough times. This is the minimum thing we can do for them. #Unity3D #C_Sharp #Math #Derivative #Animation #Logic #Dynamic #Interactive #Integration #Simulation #Programming #TheHangingHouse #THH
This takes me back 👏
Interesting view
Nice !
Entrepreneur | Storyteller | Experiential Brand Consultant
5moYou’re awesome.