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?

47 comments:

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

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

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

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

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

    ReplyDelete
  6. What's up everyone, it's my first visit at this web page, and
    piece of writing is truly fruitful for me, keep up posting such articles or reviews.


    Here is my web page: how to build a computer network using router

    ReplyDelete
  7. I comment whenever I especially enjoy a article on a site or
    if I have something to add to the conversation. It is a result of
    the passion displayed in the post I read. And on this article "How to Make Random Movement".
    I was actually moved enough to drop a thought :) I do have a few questions for you if it's okay. Could it be simply me or does it give the impression like some of these remarks appear as if they are coming from brain dead visitors? :-P And, if you are posting on additional sites, I would like to follow everything fresh you have to post. Would you make a list every one of your communal pages like your linkedin profile, Facebook page or twitter feed?

    My blog post - how much should i weigh chart

    ReplyDelete
  8. Hello, i think that i saw you visited my weblog so i came to
    “return the favor”.I'm attempting to find things to enhance my site!I suppose its ok to use some of your ideas!!

    Review my blog ... bankruptcy In florida

    ReplyDelete
  9. We aгe a grouρ of volunteeгѕ and opеning a new scheme in οur communitу.
    Үour web site offerеԁ us with valuable infoгmаtion
    to work on. Υou've done an impressive job and our entire community will be grateful to you.

    Also visit my blog post :: Same Day Payday Loans

    ReplyDelete
  10. Ӏ ωaѕ suggested thіs web
    ѕite by my cousin. І'm not sure whether this post is written by him as nobody else know such detailed about my difficulty. You're wοnderful!
    Thanks!

    Fеel freе to surf to my web ѕitе ::
    Payday Loans

    ReplyDelete