Search Unity

Dominos

Discussion in 'Made With Unity' started by StarBuck, Jan 16, 2008.

  1. StarBuck

    StarBuck

    Joined:
    Nov 16, 2006
    Posts:
    68
  2. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    It seems to work fine. What's wrong with your player as is?
     
  3. StarBuck

    StarBuck

    Joined:
    Nov 16, 2006
    Posts:
    68
    It's the physics, not the player, as each domino falls it should pick up speed accordingly to the center of gravity, slow down as it goes up hill, speed up as it goes down hill, somehow each domino has to know the forces of the domino in front and behind I would think.

    The way it is now I think the dominos should fall faster gradually until it reaches the end.

    -SB-
     
  4. StarManta

    StarManta

    Joined:
    Oct 23, 2006
    Posts:
    8,775
    But real dominoes don't do that.......
     
  5. deram_scholzara

    deram_scholzara

    Joined:
    Aug 26, 2005
    Posts:
    1,043
    I'm pretty sure that dominoes pick up most of their speed right at the start and don't really get any faster. The only problem I see with your dominoes is that they fall way to slowly. Perhaps you need to give them less mass.
     
  6. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    ... or less rotational drag.

    Actually this test gave me an idea for a simple game. Have a series of surfaces that the user can draw a line of dominoes. Maybe have hills and ramps, etc. and as their mouse "draws" on the surface, instantiate a series of dominoes. Could get pretty physics intensive pretty fast, but it might be a fun little project...
     
  7. NicholasFrancis

    NicholasFrancis

    Joined:
    Apr 8, 2005
    Posts:
    1,587
    Typically, if you physics feel too "slow", it is because objects are too large; with the default settings, a default cube is 1x1x1 meter, so dominoes can get pretty big pretty quickly.

    The quick-and-dirty solution is to increase gravity - that way, they'll fall faster and hence, feel smaller. Modifying mass will not do anything in itself
     
  8. StarBuck

    StarBuck

    Joined:
    Nov 16, 2006
    Posts:
    68
  9. DGuy

    DGuy

    Joined:
    Feb 7, 2007
    Posts:
    187
    I think this look better, but ...

    Is it possible to keep the domino-to-domino friction where it is currently at, but return the domino-to-floor friction back to what it was?

    David
     
  10. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    You should model the dominoes at actual size if you want them to behave properly. Otherwise, you have to fiddle with various parameters to get them to look right, like gravity or timeScale. (Mass doesn't affect how objects move; it only affects how objects react when colliding with other objects.)

    --Eric
     
  11. StarBuck

    StarBuck

    Joined:
    Nov 16, 2006
    Posts:
    68
    I tried making them smaller and I had trouble with the camera. All the dominos have a wood physics material on them and I lowered the Dynamic and Static friction and that is where I am now. How would I measure the dominos?

    -SB-
     
  12. nickavv

    nickavv

    Joined:
    Aug 2, 2006
    Posts:
    1,801
    When I play your web-player, my dominoes always stop somewhere. I think you need to move them a little closer together.
     
  13. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    1 unit = 1 meter. So make them about .052 units tall. The only thing is, you have to make the collisions more accurate when dealing with small scales, so reduce the min penetration for penalty in the physics settings. But if it's too small, then objects start jittering, so probably somewhere around .0005 through .001 would work.

    --Eric
     
  14. StarBuck

    StarBuck

    Joined:
    Nov 16, 2006
    Posts:
    68
    Thanks, I'll give it a try.

    -SB-
     
  15. bigkahuna

    bigkahuna

    Joined:
    Apr 30, 2006
    Posts:
    5,434
    ... or, as Nick suggested, just scale up the gravity. If your objects are 10x too large, try scaling up the gravity until you like the effect.
     
  16. relish3d

    relish3d

    Joined:
    Nov 15, 2007
    Posts:
    39
    I like that idea for a game. When I was a kid I used to have some kinda dominoes kit with ramps and other mad things to waste hours with- think it was called Domino Rally. Would be good to create a virtual version.
     
  17. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    A while ago I actually did a prototype of a game very similar to what bigK described. Since only a relative few dominoes are in motion at any given time, there's no performance worries. The only problem was figuring out what to do with the actual game once the mechanics were in place, so that's been on the back burner....

    --Eric