Examples of GImpactMeshShape


Examples of com.bulletphysics.extras.gimpact.GImpactMeshShape

      return;

    // if(indexVertexArrays.getIndexedMeshArray().size() < 2)
    // return;

    trimesh = new GImpactMeshShape(indexVertexArrays);
    trimesh.setLocalScaling(new Vector3f(1f, 1f, 1f));
    trimesh.updateBound();

    if (trimesh == null)
      return;
View Full Code Here

Examples of com.bulletphysics.extras.gimpact.GImpactMeshShape

        centreOfMass.z);

    //this.buildCoverMesh(indexVertexArrays, centreOfMass);

    if (indexVertexArrays != null) {
      trimesh = new GImpactMeshShape(indexVertexArrays);
      trimesh.setLocalScaling(new Vector3f(1f, 1f, 1f));
      trimesh.updateBound();
      // rigidBody.setMotionState(myMotionState);
      if (trimesh != null && this.rigidBody != null)
        this.rigidBody.setCollisionShape(trimesh);
View Full Code Here

Examples of com.bulletphysics.extras.gimpact.GImpactMeshShape

    // create trimesh
    TriangleIndexVertexArray indexVertexArrays = new TriangleIndexVertexArray(
        Bunny.NUM_TRIANGLES, Bunny.getIndexBuffer(), 4 * 3,
        Bunny.NUM_VERTICES, Bunny.getVertexBuffer(), 4 * 3);

    GImpactMeshShape trimesh = new GImpactMeshShape(indexVertexArrays);
    trimesh.setLocalScaling(new Vector3f(4f, 4f, 4f));
    trimesh.updateBound();
    trimeshShape = trimesh;

    // register algorithm
    GImpactCollisionAlgorithm.registerAlgorithm(dispatcher);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.