Package codechicken.lib.raytracer

Examples of codechicken.lib.raytracer.IndexedCuboid6


    @Override
    public Iterable<IndexedCuboid6> getSubParts()
    {
        List<IndexedCuboid6> list = new ArrayList<IndexedCuboid6>();
        list.add(new IndexedCuboid6(-1, getBounds()));
        getLogic().addSubParts(this, list);
        return list;
    }
View Full Code Here


        public void addSubParts(BundledGatePart part, List<IndexedCuboid6> list)
        {
            for (int i = 0; i < 16; i++)
            {
                IndexedCuboid6[] array = (pressMask&1<<i) == 0 ? unpressed : pressed;
                list.add(new IndexedCuboid6(i, array[i].copy().apply(VecLib.orientT(part.orientation))));
            }
        }
View Full Code Here

  public Iterable<IndexedCuboid6> getSubParts()
  {
    LinkedList<IndexedCuboid6> l = new LinkedList<IndexedCuboid6>();
    for (Cuboid6 c : getCollisionBoxes())
    {
      l.add( new IndexedCuboid6( 0, c ) );
    }
    return l;
  }
View Full Code Here

    @Override
    public Iterable<IndexedCuboid6> getSubParts(){
        Iterable<Cuboid6> boxList = getCollisionBoxes();
        LinkedList<IndexedCuboid6> partList = new LinkedList<IndexedCuboid6>();
        for(Cuboid6 c : boxList)
            partList.add(new IndexedCuboid6(0, c));
        return partList;
    }
View Full Code Here

TOP

Related Classes of codechicken.lib.raytracer.IndexedCuboid6

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.