Package com.bulletphysics.collision.shapes

Examples of com.bulletphysics.collision.shapes.TriangleShape


    this.hitFraction = 1f;
    this.triangleCollisionMargin = triangleCollisionMargin;
  }
 
  public void processTriangle(Vector3f[] triangle, int partId, int triangleIndex) {
    TriangleShape triangleShape = new TriangleShape(triangle[0], triangle[1], triangle[2]);
    triangleShape.setMargin(triangleCollisionMargin);

    VoronoiSimplexSolver simplexSolver = new VoronoiSimplexSolver();
    GjkEpaPenetrationDepthSolver gjkEpaPenetrationSolver = new GjkEpaPenetrationDepthSolver();

    //#define  USE_SUBSIMPLEX_CONVEX_CAST 1
View Full Code Here


      //ident.setIdentity();
     
      CastResult castResult = new CastResult();
      castResult.fraction = hitFraction;
      SphereShape pointShape = new SphereShape(ccdSphereRadius);
      TriangleShape triShape = new TriangleShape(triangle[0], triangle[1], triangle[2]);
      VoronoiSimplexSolver simplexSolver = new VoronoiSimplexSolver();
      SubsimplexConvexCast convexCaster = new SubsimplexConvexCast(pointShape, triShape, simplexSolver);
      //GjkConvexCast  convexCaster(&pointShape,convexShape,&simplexSolver);
      //ContinuousConvexCollision convexCaster(&pointShape,convexShape,&simplexSolver,0);
      //local space?
View Full Code Here

TOP

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

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.