xobjects collision

Discussion in 'Track Modding' started by GBJsch, Nov 27, 2020.

Tags:
  1. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    I was converting a rFactor 1 track to rFactor 2, and for some reason, I was colliding with the xobjects (sector 1, sector 2, finish), idk what to do, the properties where the same as usual, even when I put an AI to drive, it collide with the xobjects, please help!

    Object Properties in 3DSimED:
    upload_2020-11-27_15-48-51.png
     
  2. McFlex

    McFlex Registered

    Joined:
    Feb 23, 2012
    Messages:
    1,031
    Likes Received:
    317
    Add collidable=false to the .scn enties of the xobjects
     
  3. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,362
    Likes Received:
    2,517
    //-------------------------------------------------------
    //------------------MANDATORY OBJECTS--------------------
    //-------------------------------------------------------
    Instance=xsector2
    {
    Render=False
    MeshFile=xsector2.gmt CollTarget=True HATTarget=False
    Response=VEHICLE,TIMING
    }
    Instance=xsector1
    {
    Render=False
    MeshFile=xsector1.gmt CollTarget=True HATTarget=False
    Response=VEHICLE,TIMING
    }
    Instance=xpitout
    {
    Render=False
    MeshFile=xpitout.gmt CollTarget=True HATTarget=False
    Response=VEHICLE,PITSTOP
    }
    Instance=xpitin
    {
    Render=False
    MeshFile=xpitin.gmt CollTarget=True HATTarget=False
    Response=VEHICLE,PITSTOP
    }
    Instance=xfinish
    {
    Render=False
    MeshFile=xfinish.gmt CollTarget=True HATTarget=False
    Response=VEHICLE,TIMING
    }
     
  4. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    my xobjects in the scn file are like this:

    Instance=xfinish.gmt
    {
    Render=False VisGroups=(32)
    MeshFile=xfinish.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,TIMING
    }
    Instance=xpitin.gmt
    {
    Render=False VisGroups=(32)
    MeshFile=xpitin.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,PITSTOP
    }
    Instance=xpitout.gmt
    {
    Render=False VisGroups=(32)
    MeshFile=xpitout.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,PITSTOP
    }
    Instance=xsector1.gmt
    {
    Render=False
    MeshFile=xsector1.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,TIMING
    }
    Instance=xsector2.gmt
    {
    Render=False
    MeshFile=xsector2.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,TIMING
    }
    Instance=horizon
    {
    VisGroups=(32)
    MeshFile=horizon.gmt CollTarget=True HATTarget=False LODOut=(10000.0)
    }
    Instance=xfinish01
    {
    Render=False
    MeshFile=xfinish01.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,TIMING
    }
    Instance=xsector1001
    {
    Render=False
    MeshFile=xsector1001.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,TIMING
    }
    Instance=xsector2002
    {
    Render=False
    MeshFile=xsector2002.gmt CollTarget=True HATTarget=False LODOut=(2000.0)
    Response=VEHICLE,TIMING
    }
     
  5. Coutie

    Coutie Moderator Staff Member

    Joined:
    Oct 5, 2010
    Messages:
    3,782
    Likes Received:
    2,242
    Are you sure you aren't hitting something else, because they are set up right.
     
  6. Dirtnz

    Dirtnz Registered

    Joined:
    Mar 9, 2014
    Messages:
    34
    Likes Received:
    23
    Remove the .gmt from the instance lines so instead of
    Instance=xsector1.gmt
    just have
    Instance=xsector1

    basically it's reading them as static objects because you have them named incorrectly instead of triggering them as timing gates etc
    leave the .gmt where it is on the mesh= secton just remove it from the instance line and it should fix the issue.

    Whats with the xfinish01, xsector1001, xsector2002 ??
     
  7. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    thank you! i'll try, the xfinish01, xsector1001, xsector2002 are there because it is a hillclimb track
     
  8. GBJsch

    GBJsch Registered

    Joined:
    Aug 4, 2020
    Messages:
    82
    Likes Received:
    252
    now, the xsector1001 and xsector2002 are not working, on xsector1001, I just pass thru it and the sector doesn't change, and xsector2002 is just like a wall, I collide with it, I could not even get to the others to see if it's working or not. help
     
  9. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,382
    Likes Received:
    6,600

Share This Page