Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

how to reduce bounce effect

Discussion in 'Scripting' started by yair1221, Jan 5, 2012.

  1. yair1221

    yair1221

    Joined:
    Sep 28, 2011
    Posts:
    39
    I'm trying to land an aircraft(spacecraft, for this instance) on a runway.
    The problem is, it bounces the hell off it as soon as it touches it!
    I'm using icy physics materials on both objects, so the bounce is 0 and combination set on "minimal".
    I tried adding more mass, i thought maybe if the object was heavier it wouldn't bounce so hard, but it just didn't work.
    Is there anyway to reduce the bouncing without scripting the whole thing using Kinematic or Trigger?
     
  2. Sock Puppet

    Sock Puppet

    Joined:
    Jan 9, 2011
    Posts:
    77
    Some questions which may help determine the problem.

    - What are you using as colliders for the space craft and runway?
    - Are you using 1 unity unit per meter as your scale?
    - What is the velocity of the spacecraft when it hits the runway?

    The runway should set be kinematic = true as I'm assuming its a stationary runway.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    Webplayer would be nice..

    Are you using forces, torques?

    There is also some bounce setting in Edit / project settings / physics..
     
  4. yair1221

    yair1221

    Joined:
    Sep 28, 2011
    Posts:
    39
    the runway is not a rigidbody, but its parent is SUPPOSED to be a rigidbody(currently isnt)
    the runway is a box collider and the spacecraft is a mesh collider, but its GEARS are box colliders
    im not sure about how to check to scale
    the velocity's square magnitude is 78 point something, cant remember specifics...and i dont remember if its the normalization that i need to check or the square magnitude...

    im using forces and torques, as the spacecraft is a rigidbody
    the bounce threshold isnt relevant right now, because i dont want no bounce at all, i just want to minimize it...
     
  5. Ntero

    Ntero

    Joined:
    Apr 29, 2010
    Posts:
    1,436
    Is there any Drag on the objects?

    With 0 drag, even the smallest reaction (the act of moving the colliding objects apart so they no longer collider) can cause them to launch apart. Try with some drag on the ship to see if that improves anything (though the ship itself could act a bit odd at this point).
     
  6. yair1221

    yair1221

    Joined:
    Sep 28, 2011
    Posts:
    39
    the ship has 1 drag, ill try setting higher values, see if it works

    EDIT: it works, but as you said, the ship's acting wierd...and i have to multiply the force by the drag
    plus, it doesn't give me the effect i want, i want it to bounce a little then land back, but this time with less force, the problem is, that there is no decrease in the force, so i just get all the screen vibrating insanely...
     
    Last edited: Jan 5, 2012