Package com.bulletphysics.collision.narrowphase

Examples of com.bulletphysics.collision.narrowphase.ConvexCast$CastResult


      // JAVA TODO: should be convexCaster1
      //ContinuousConvexCollision convexCaster1(castShape,convexShape,&simplexSolver,&gjkEpaPenetrationSolver);
      GjkConvexCast convexCaster2 = new GjkConvexCast(castShape, convexShape, simplexSolver);
      //btSubsimplexConvexCast convexCaster3(castShape,convexShape,&simplexSolver);

      ConvexCast castPtr = convexCaster2;

      if (castPtr.calcTimeOfImpact(convexFromTrans, convexToTrans, colObjWorldTransform, colObjWorldTransform, castResult)) {
        // add hit
        if (castResult.normal.lengthSquared() > 0.0001f) {
          if (castResult.fraction < resultCallback.closestHitFraction) {
            castResult.normal.normalize();
            LocalConvexResult localConvexResult = new LocalConvexResult(collisionObject, null, castResult.normal, castResult.hitPoint, castResult.fraction);
View Full Code Here

TOP

Related Classes of com.bulletphysics.collision.narrowphase.ConvexCast$CastResult

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.