Search Unity

Shell ejection physics issue.

Discussion in 'Scripting' started by IAmCraigSnedeker, Aug 21, 2014.

  1. IAmCraigSnedeker

    IAmCraigSnedeker

    Joined:
    Jul 20, 2014
    Posts:
    117


    I'm trying to make shells eject from my gun.

    I'm following this amazing's guy tutorial, and he used all the default settings.


    Skip to 17:47.

    His shell ejection looks much more realistic while mine looks fake as heck. I can't seem to adjust mine to not seem... floaty.

    Any help would be appreciated, thanks.
     
  2. RoryScanlan

    RoryScanlan

    Joined:
    Jan 25, 2014
    Posts:
    139
    rigidbody, usegravity, mass, no drag(or very little), no angular drag(or very little).
    With this little info not much more i can suggest
     
  3. Fraconte

    Fraconte

    Joined:
    Dec 6, 2013
    Posts:
    327
    You don't seem to use some random in the shell AddForce as in the tutorial.

    Edit: I think you are looping the same shot... :)
     
  4. IAmCraigSnedeker

    IAmCraigSnedeker

    Joined:
    Jul 20, 2014
    Posts:
    117
    I've played with all kinds of rigidbody settings and nothing changes the fact they seem to float out of the gun. Increasing mass only makes them drop instantly.
     
  5. Fraconte

    Fraconte

    Joined:
    Dec 6, 2013
    Posts:
    327
    try changing the direction and intensity of the force then...