Search Unity

simple smooth physic from old games

Discussion in 'Physics' started by LTE_, Apr 26, 2016.

  1. LTE_

    LTE_

    Joined:
    May 31, 2013
    Posts:
    19
    Hi anyone have any idea how to simulate physic from an old game: pikachu volleyball?


    I tried and unity physic looks too real and the ball is very heavy compare to the pikachu volleyball
     
  2. Danicano

    Danicano

    Joined:
    Mar 10, 2015
    Posts:
    18
    Try lowering mass property in ball's rigidbody component.
     
  3. LTE_

    LTE_

    Joined:
    May 31, 2013
    Posts:
    19
    i tried but still cant be so smooth without any drag
     
  4. JamesLeeNZ

    JamesLeeNZ

    Joined:
    Nov 15, 2011
    Posts:
    5,616
    what makes you think thats a physics based game? I highly doubt it is.
     
  5. LTE_

    LTE_

    Joined:
    May 31, 2013
    Posts:
    19
    so turn off the physic?
     
  6. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Code the movement. pseudocode...

    loop:

    x += vx
    y += vy

    if (x<-xlimit)
    vx = -vx
    x = -xlimit

    .. repeat for other side, and y axis, adding some gravity and so on.

    And so on. Naturally you need to multiply by deltatime and so on, but this is a pretty basic game development thing you should be able to perform yourself without the physics engine, and will likely teach you valuable lessons.