Search Unity

Question Help with bouncing off of game object

Discussion in 'Physics' started by krupps, Dec 27, 2023.

  1. krupps

    krupps

    Joined:
    Oct 17, 2017
    Posts:
    159
    I'm trying to get my fire guy to bounce off of the person (3d). But I also only want the person to move a little, but the fire guy to bounce backwards a little far. But, when he comes bounces on the ground just a tiny bounce. Can some give me some advice to get this working?

    See attached video for an example of whats happening

    The fire guy is not bouncing back from hitting the person game object

    Project settings
    upload_2023-12-27_16-54-48.png

    Person RigidBody
    upload_2023-12-27_16-55-25.png

    Collider on person
    upload_2023-12-27_16-56-3.png

    The physics material
    upload_2023-12-27_16-56-35.png
     
  2. krupps

    krupps

    Joined:
    Oct 17, 2017
    Posts:
    159
    Fire guy rigid body

    upload_2023-12-27_16-59-50.png

    Collider
    upload_2023-12-27_17-0-46.png

    Physics material
    upload_2023-12-27_17-1-25.png
     
  3. krupps

    krupps

    Joined:
    Oct 17, 2017
    Posts:
    159
    And the Terrain collider is shown on the video
     
  4. krupps

    krupps

    Joined:
    Oct 17, 2017
    Posts:
    159
    After looking at it, he's not bouncing back very far. What would be the best setting increase him bouncing backwards more, but not up?
     
  5. zulo3d

    zulo3d

    Joined:
    Feb 18, 2023
    Posts:
    1,000
    If increasing the bounciness isn't helping then you can try decreasing the mass of the Fire Guy. If that doesn't give you the desired effect then you can add a script that pushes the Fire Guy away.