forked from mirror/DotRecast
Added: allow set userId for offmesh connections
This commit is contained in:
parent
53aac60713
commit
4a1b430ee6
|
@ -65,7 +65,7 @@ namespace DotRecast.Recast.Toolset.Geom
|
|||
option.offMeshConDir[i] = offMeshCon.bidir ? 1 : 0;
|
||||
option.offMeshConAreas[i] = offMeshCon.area;
|
||||
option.offMeshConFlags[i] = offMeshCon.flags;
|
||||
// option.offMeshConUserID[i] = offMeshCon.userId;
|
||||
option.offMeshConUserID[i] = offMeshCon.userId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace DotRecast.Recast.Geom
|
|||
public readonly int flags;
|
||||
public readonly int userId;
|
||||
|
||||
public RcOffMeshConnection(RcVec3f start, RcVec3f end, float radius, bool bidir, int area, int flags)
|
||||
public RcOffMeshConnection(RcVec3f start, RcVec3f end, float radius, bool bidir, int area, int flags, int userId = 0)
|
||||
{
|
||||
verts = new float[6];
|
||||
verts[0] = start.X;
|
||||
|
@ -46,6 +46,7 @@ namespace DotRecast.Recast.Geom
|
|||
this.bidir = bidir;
|
||||
this.area = area;
|
||||
this.flags = flags;
|
||||
this.userId = userId;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue