Collision not working.

Discussion in 'Car Modding' started by Navigator, Jul 16, 2017.

  1. Navigator

    Navigator Registered

    Joined:
    Jan 15, 2012
    Messages:
    2,275
    Likes Received:
    389
    Hi guys,

    Busy with a private conversion, I encountered a problem; cars can go into each other.
    I can run from left to right through other cars with just a minor bump.......
    The cars do have a collision model that is the size of the cars and the .gen file says this:
    MeshFile=DALLARA_COLISION.GMT Render=False CollTarget=True HATTarget=False LODIn=(0.0) LODOut=(150.0)

    Thats okay, right?
    So; whats left? What can I do?
     
  2. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    Maybe it's the mesh itself.
    Check if the Normals are directed correctly, showing to the outside or if the mesh has some holes.
    Or, as first option, try the collision mesh from a car where the collision works, to check if it's the mesh that is wrong.
     
    Navigator likes this.
  3. Navigator

    Navigator Registered

    Joined:
    Jan 15, 2012
    Messages:
    2,275
    Likes Received:
    389
    Thank you; I will look into that.
    First option is no option for this as all cars do this.
    But checking the normals, I did that once and think I stil know how to do that ;)

    Thanks!
     
  4. Pauli Partanen

    Pauli Partanen Registered

    Joined:
    May 15, 2012
    Messages:
    1,091
    Likes Received:
    1,748
    Take from 397/isi mod the collision file.
     
    Navigator likes this.
  5. Navigator

    Navigator Registered

    Joined:
    Jan 15, 2012
    Messages:
    2,275
    Likes Received:
    389
    Thats actually a good idea too!
    Still want to know how those normals are, just to see if I can, but that is a solution also.

    Thanks!
     
  6. Pauli Partanen

    Pauli Partanen Registered

    Joined:
    May 15, 2012
    Messages:
    1,091
    Likes Received:
    1,748
    This is conversion from rF1? I have noticed that those files almost never work like they should in rF2. They needed to be done again.
     
    Navigator likes this.
  7. T1specialist

    T1specialist Registered

    Joined:
    Jan 11, 2012
    Messages:
    237
    Likes Received:
    163
    possible reasons:
    - triangulate your mesh
    - replace your mesh with similar size visible mesh to see it appears in the right position
    - if you use blender you need to reset you scaling and rotation (in 3dsmax this is "reset xform" I think)
    - make sure your pivot is in correct place
    - mesh has holes. Mesh needs to be fully enclosed, even at bottom I think
    - collider mesh doesn't need uvmaps
    - make a "collider" named material for the collider (doesn't need any changes in the material settings)
    - not sure but use flat shading for the collider mesh
    - use "no texture" as material
    - does the other car have collider?
     
    Navigator likes this.
  8. Navigator

    Navigator Registered

    Joined:
    Jan 15, 2012
    Messages:
    2,275
    Likes Received:
    389
    All worked out fine! I just took the other collision model.
    I'm not good with the mesh/normals/faces things; I tried but couldn't work it out anymore and so; choose the easy way out ;)

    Thanks all!
     
    Pauli Partanen likes this.
  9. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    You can always just not include one, and have the game generate it for you.
     
    Navigator likes this.
  10. Navigator

    Navigator Registered

    Joined:
    Jan 15, 2012
    Messages:
    2,275
    Likes Received:
    389
    Really?
    Wow, I did not know that. Can't wait to try it out :)

    Thanks!
     
  11. Juergen-BY

    Juergen-BY Registered

    Joined:
    Jun 16, 2012
    Messages:
    3,089
    Likes Received:
    440
    Is it possible, to grab somewhere the temp created collision file?

    //Edit: sure, that this is really working? For making the attached pics i have removed the coll from the gen file...
     

    Attached Files:

    Last edited: Aug 7, 2017
  12. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    It used to work fine, I haven't tried. In a while. You press ctrl +h to change the view mode, and you can see it when it has the blue outline. I am away from home for another week so I can't check it.
     
  13. Juergen-BY

    Juergen-BY Registered

    Joined:
    Jun 16, 2012
    Messages:
    3,089
    Likes Received:
    440
    Thanks for the information, will check that.
     

Share This Page