Wednesday, December 24, 2008

How to Make Random Movement

Random movement appear everywhere. From school of fitutor 4-1sh under the sea, flies and bees in the air to molecules of water in the bottle. Random movement is complex matter and we must define specifically for every kind of object.

There are three types of random movement. First, random speed of object. Object that move with non constant speed. In 2D animation, the ant movement maybe fall into this category. Second, random turn or changing direction of object. We can see it from fish and other animals. Fish will move with constant speed but they change their direction of movement in sudden. And the third category is random speed and turn. Many kind of insect that can fly fall into this category, like butterfly, bumblebee, and flies.

The key to build random movement lies on this "pick random ... to ..." blockpick random. But this random number must be convert into random movement or random turn with IF THEN rule. There are many way to make conversion. The basic rule is to define how frequently the changing happens. If the smaller occurrence chance of a change , the smaller value of the fraction of possible change that will occurred. The change occurrence value of 1/2 to 1/6 represent that it happens very often, and the change occurrence value of 1/10 or 1/15 represent that it rarely happens. Divisor number showed by the value of picking random number. So if more rarely change happens, the value of picking random number will be greater.

Maybe it is too technical, so we will learn this concept through example of fish movemtutor 4-2ent. This is the second type of random movement, so we only have to randomize the turning behavior. Many fish changing their direction of swimming frequently so we choose random number between 1 to 6. Now we can develop the stack of random movement completely. Is it easy?

42 comments:

  1. 一定要保持最佳狀況呦,加油!!!期待你發表的新文章!....................................................................

    ReplyDelete
  2. pleasure to find such a good artical! please keep update!!.................................................................                           

    ReplyDelete
  3. 好文章就值得回響,如果可以常常看到您的更新,應該是件很幸福的事情~~............................................................

    ReplyDelete
  4. 最美好的東西是看不到、摸不到的,但可以用心感覺。.......................................................

    ReplyDelete
  5. 唯有用熱情、用智慧去觀察事物,這事物才會把他的秘密,洩漏給我們......................................................................

    ReplyDelete
  6. 在莫非定律中有項笨蛋定律:「一個組織中的笨蛋,恆大於等於三分之二。」..................................................

    ReplyDelete