Saturday, June 11, 2022
HomeGame Developmentunity - How you can animate a 2D top-down fish?

unity – How you can animate a 2D top-down fish?


Just lately I have been making an attempt to create a controllable fish character. The sport is 2D and top-down.

My two approaches are:

  • Skeletal Animation, which is flexible however appears too robotic. For instance, regardless of how onerous I flip, the fish has the identical turning animation.
  • Procedural Animation, which I applied utilizing a line renderer following a tutorial from the channel Blackthornprod. It is extremely near what I need, the fish is dynamic. The issue is that the fish loses all kind when turning, some elements get thinner whereas some elements get thicker. The opposite factor is that it is onerous to make it work with several types of fish sprites.

Right here is an instance, the black fish is animated utilizing bones and the animator. The white fish is procedurally animated utilizing a line renderer and the fabric with the sprite as a texture: [fish swimming gif2

I want to be able to move the upper part of the fish, while the tail follows in a chain-like manner. Preferably avoiding line renderer as I’m not too comfortable with the pixelated edges and needing to loop through hundreds of positions to animate only one fish.

I would love any suggestions and I’m thankful to anyone who takes the time to help me!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments