Package com.bulletphysics.collision.shapes

Examples of com.bulletphysics.collision.shapes.VertexData


          (-this.centreOfMass.y * scaleBy), -this.centreOfMass.z
              * scaleBy);

      for (int i = 0; i < indexVertexArrays.getNumSubParts(); i++) {

        VertexData vd = indexVertexArrays
            .getLockedReadOnlyVertexIndexBase(i);

        for (int t = 0; t < vd.getIndexCount() / 3; t++) {

          Vector3f[] triangle = new Vector3f[] { new Vector3f(),
              new Vector3f(), new Vector3f() };
          Vector3f scale = new Vector3f(1 / GLOBAL.jBullet.scale, -1
              / GLOBAL.jBullet.scale, 1 / GLOBAL.jBullet.scale);
          vd.getTriangle(t * 3, scale, triangle);
          g.stroke(255, 0, 0);
          g.beginShape();
          g.vertex(triangle[0].x, triangle[0].y, triangle[0].z);
          g.vertex(triangle[1].x, triangle[1].y, triangle[1].z);
          g.vertex(triangle[2].x, triangle[2].y, triangle[2].z);
View Full Code Here


    float scaleBy = -1 / GLOBAL.jBullet.scale;

    if (indexVertexArrays != null) {

      for (int i = 0; i < indexVertexArrays.getNumSubParts(); i++) {
        VertexData vd = indexVertexArrays
            .getLockedReadOnlyVertexIndexBase(i);

        for (int t = 0; t < vd.getIndexCount() / 3; t++) {

          Vector3f[] triangle = new Vector3f[] { new Vector3f(),
              new Vector3f(), new Vector3f() };
          Vector3f scale = new Vector3f(1 / GLOBAL.jBullet.scale, -1
              / GLOBAL.jBullet.scale, 1 / GLOBAL.jBullet.scale);
          vd.getTriangle(t * 3, scale, triangle);

          float screenX = g.screenX(triangle[0].x, triangle[0].y,
              triangle[0].z);
          float screenY = g.screenY(triangle[0].x, triangle[0].y,
              triangle[0].z);
View Full Code Here

TOP

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

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.