Problem with Collision and flying cars

Discussion in 'Car Modding' started by Leonardo Nogueira, Apr 9, 2017.

  1. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
    Hi Guys...
    I'm working on a mod for the Truck Series and I have two problems... I searched for the answer but cant find any solution and I thought maybe somebody here can help me... Please :)

    1- When my car hits in a wall or something with the side in a high speed the rFactor crashes sometimes... I don't know why :/
    2- The AI cars sometimes get wings and fly like this video:


    If somebody have any idea of the problem, I appreciate any help.
     
  2. theseven13

    theseven13 Registered

    Joined:
    Oct 31, 2016
    Messages:
    30
    Likes Received:
    4
    3d problem of the car (a vertex that misplaced)
    Or the bugger circuit

    sorry for my english
     
  3. WiZPER

    WiZPER Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,517
    Likes Received:
    186
    I've seen this happen to a specific car at the modded version of Long Beach, think it was a Porsche - never really figured out what if was.
     
  4. toebee

    toebee Registered

    Joined:
    Oct 5, 2010
    Messages:
    380
    Likes Received:
    390
    Looks like a physics issue to me. I would guess tires or suspension.
     
    Guimengo likes this.
  5. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
    Thanks all replies... The tires and suspension is revised and nothing was found... the track isn't because I run with the stock cars in the same tracks and nothing happens. All the vertex is above the main plane of the car (botton)... if it's the case, how can I see if it's the problem?
     
  6. toebee

    toebee Registered

    Joined:
    Oct 5, 2010
    Messages:
    380
    Likes Received:
    390
    Unfortunately that type of problem is hard to solve. I don't know how you went about building your mod, but if you can't find a solution I would start with a working mod. Try to adapt your physics to it and see what happens. Or vice versa. Add your 3d models to a working mod to see what happens. This way you can troubleshoot your problem and narrow down possible issues. I am still leaning towards something in the physics just by the way they move and flip.
     
    Leonardo Nogueira likes this.
  7. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    Did you make the collision model, or did you let the game make it for you? If you made it, make sure the normals are facing the right way, I made one and somehow the normals were backwards, so if the collision model hit the ground, the car would flip.
     
    Leonardo Nogueira and WiZPER like this.
  8. T1specialist

    T1specialist Registered

    Joined:
    Jan 11, 2012
    Messages:
    237
    Likes Received:
    163
    There is no documentation about the collider but here is how I do it. I don't know if any of this is true. First the mesh needs to be closed. So no holes. No loose edges or vertices. Second thing is try to get it done with as few vertices as possible. Aim for something low like 40 verts/70 tris? Also triangulate the mesh although I have no idea if this is required. If you have collider meshes for tires then don't put them under the tire instances but put them under the spindle instances. Make sure they don't touch the ground.

    Don't try to do the body as multiple meshes but just one. For example if you try to have separate nose cone collider for single seater you'll get springy collisions just like shown on your video. Also don't have uvmaps for the collider... I think. I don't remember the material settings but I can check.

    Other things to check. Make sure your scaling is 1 and there is no rotation for the boject. In blender you press ctrl-a and apply rotation and scaling (reset xform in 3dsmax?). Also make sure your pivot is at 0.0.0. Make sure all your vertices are connected.

    As for the rfactor crashing I have no idea. Sometimes our car causes the game to crash when I collide with walls. It is super difficult to fix because it happens so rarely. Your problem is clearly that something is wrong with your collider. Just to be sure you are using separate low poly collider mesh and not the actual high definition car body mesh? Also check your gen that no other meshes have the CollTarget=True.
     
    Last edited: Apr 10, 2017
    Leonardo Nogueira likes this.
  9. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
    Thanks, I'll try to put the Stock cars with my physics and see what happens!
     
  10. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
    I'll try this and if it solves the problem I'll answer here :)
     
  11. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
    Very very thanks... if I cannot solve this I'll remake all the collision mesh... My collision mesh have about 100 polys and is quadrify... the tires is colideable, so, can this be the problem???
    I have just one collision object for all car.
    I'll check everything, thanks!
     
  12. T1specialist

    T1specialist Registered

    Joined:
    Jan 11, 2012
    Messages:
    237
    Likes Received:
    163
    I'm pretty sure tires should not be collidable. If you have a single seater then I'd make separate collision meshes for the tires.

    rf2 can make a collider on its own? How?
     
  13. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
    A strange thing... I remove all colltarget of all 3d parts in the GEN but the car is still collideable... maybe something is wrong with the collision of any part :(
     
  14. Rodrigo Vieira

    Rodrigo Vieira Registered

    Joined:
    Mar 31, 2017
    Messages:
    21
    Likes Received:
    98
    It's better! Suspension issues are still present!
     
  15. Doogal

    Doogal Registered

    Joined:
    Mar 7, 2017
    Messages:
    56
    Likes Received:
    26
    Nicola59 likes this.
  16. Rodrigo Vieira

    Rodrigo Vieira Registered

    Joined:
    Mar 31, 2017
    Messages:
    21
    Likes Received:
    98
    Thanks Doogal, you are absolutely right
     
  17. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
  18. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,779
    Likes Received:
    2,241
    To have the game make your collision model, just don't put one in the gen file. Sorry for the late reply, I forgot I posted here.:(
     
    memoNo1 and Leonardo Nogueira like this.
  19. Leonardo Nogueira

    Leonardo Nogueira Registered

    Joined:
    Apr 1, 2016
    Messages:
    260
    Likes Received:
    358
    Yes... I tested that and a collision from the game works! But what solved the problem was the hdv trick in the Doogal post! But it can be useful in the future :)
     
    memoNo1 likes this.
  20. Rodrigo Vieira

    Rodrigo Vieira Registered

    Joined:
    Mar 31, 2017
    Messages:
    21
    Likes Received:
    98
    Thanks for all. The problem was fixed!
     

Share This Page