public ShapeDataAbstract(string name, Area area, Bounds bounds, ColliderInfoMode infoMode)
 {
     this.name     = name;
     this.area     = area;
     this.bounds   = bounds;
     this.infoMode = infoMode;
 }
 //for cloning
 public ShapeDataAbstract(ShapeDataAbstract data)
 {
     name     = data.name;
     area     = data.area;
     bounds   = data.bounds;
     infoMode = data.infoMode;
 }
 public ShapeDataAbstract(AreaWorldModMagicValue value, Area area, ColliderInfoMode infoMode)
 {
     //AreaWorldMod container = value.container;
     name          = value.name;
     bounds        = value.bounds;
     this.area     = area;
     this.infoMode = infoMode;
 }
 public AreaWorldModShapeData(AreaWorldMod Mod, List <ShapeDataAbstract> Shapes)
 {
     mod      = Mod;
     shapes   = Shapes;
     priority = Mod.priority;
     area     = Mod.GetArea();
     mode     = Mod.mode;
 }
        public ShapeDataAbstract(Collider collider, Area area)
        {
            GameObject go = collider.gameObject;

            name      = go.name;
            bounds    = collider.bounds;
            this.area = area;
            infoMode  = ColliderInfoMode.Solid;
        }
 public MeshDataForGPU(
     Vector3[] verts, int[] tris, Area area, Matrix4x4 matrix, Bounds bounds, //very userful
     string name, ColliderInfoMode infoMode)                                  //semi userful
 {
     this.verts    = verts;
     this.tris     = tris;
     this.area     = area;
     this.matrix   = matrix;
     this.bounds   = bounds;
     this.name     = name;
     this.infoMode = infoMode;
 }
Beispiel #7
0
        //public string tag;
        //public int layer;
        //public UserfulFilter filter;
        //public int priority;

        public MeshColliderInfo(
            Vector3[] verts, int[] tris, Area area, Matrix4x4 matrix, Bounds bounds, //very userful
            string name, ColliderInfoMode infoMode, string tag, int layer)           //semi userful
        {
            this.verts    = verts;
            this.tris     = tris;
            this.area     = area;
            this.matrix   = matrix;
            this.bounds   = bounds;
            this.name     = name;
            this.infoMode = infoMode;
            //this.tag = tag;
            //this.layer = layer;
        }
Beispiel #8
0
        public ShapeDataBox(AreaWorldModMagicValue value, Area area, Quaternion modRotation, ColliderInfoMode infoMode) : base(value, area, infoMode)
        {
            Quaternion rotation = modRotation * value.rotation;
            Vector3    scale    = value.cubeSize * 2;

            boxMatrix = Matrix4x4.TRS(bounds.center, rotation, scale);
        }
 public ComputeShaderResultHolder(CSRasterization3DResult result, ColliderInfoMode infoMode, Area area)
 {
     this.result   = result;
     this.infoMode = infoMode;
     this.area     = area;
 }
Beispiel #10
0
 public ShapeDataSphere(AreaWorldModMagicValue value, Area area, ColliderInfoMode infoMode) : base(value, area, infoMode)
 {
 }