Package com.bulletphysics.collision.shapes

Examples of com.bulletphysics.collision.shapes.PolyhedralConvexShape


      }

      if (useWireframeFallback) {
        // for polyhedral shapes
        if (shape.isPolyhedral()) {
          PolyhedralConvexShape polyshape = (PolyhedralConvexShape) shape;

          gl.glBegin(GL_LINES);

          Vector3f a = vectorsPool.get(), b = vectorsPool.get();
          int i;
          for (i = 0; i < polyshape.getNumEdges(); i++) {
            polyshape.getEdge(i, a, b);

            gl.glVertex3f(a.x, a.y, a.z);
            gl.glVertex3f(b.x, b.y, b.z);
          }
          gl.glEnd();
View Full Code Here

TOP

Related Classes of com.bulletphysics.collision.shapes.PolyhedralConvexShape

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.