示例#1
0
 private static CoctCollision Map3(Coct.Collision source) =>
 new CoctCollision
 {
     v00      = source.v00,
     Vertex1  = source.Vertex1,
     Vertex2  = source.Vertex2,
     Vertex3  = source.Vertex3,
     Vertex4  = source.Vertex4,
     Co5Index = source.PlaneIndex,
     Co6Index = source.BoundingBoxIndex,
     Co7Index = source.SurfaceFlagsIndex,
 };
示例#2
0
 private static CoctCollision MapCollision(Coct.Collision source) =>
 new CoctCollision
 {
     v00         = source.v00,
     Vertex1     = source.Vertex1,
     Vertex2     = source.Vertex2,
     Vertex3     = source.Vertex3,
     Vertex4     = source.Vertex4,
     PlaneX      = source.Plane.Normal.X,
     PlaneY      = source.Plane.Normal.Y,
     PlaneZ      = source.Plane.Normal.Z,
     PlaneD      = source.Plane.D,
     BoundingBox = Map6(source.BoundingBox),
     Flags       = MapSurfaceFlag(source.SurfaceFlags),
 };