Package com.bulletphysics.linearmath

Examples of com.bulletphysics.linearmath.Transform.inverse()


    }
  }

  public static void collideTT(Node root0, Transform xform0, Node root1, Transform xform1, ICollide policy) {
    Transform xform = Stack.alloc(Transform.class);
    xform.inverse(xform0);
    xform.mul(xform1);
    collideTT(root0, root1, xform, policy);
  }

  public static void collideTV(Node root, DbvtAabbMm volume, ICollide policy) {
View Full Code Here


    Vector3f planeNormal = planeShape.getPlaneNormal(Stack.alloc(Vector3f.class));
    float planeConstant = planeShape.getPlaneConstant();

    Transform planeInConvex = Stack.alloc(Transform.class);
    convexObj.getWorldTransform(planeInConvex);
    planeInConvex.inverse();
    planeInConvex.mul(planeObj.getWorldTransform(tmpTrans));

    Transform convexInPlaneTrans = Stack.alloc(Transform.class);
    convexInPlaneTrans.inverse(planeObj.getWorldTransform(tmpTrans));
    convexInPlaneTrans.mul(convexObj.getWorldTransform(tmpTrans));
View Full Code Here

    convexObj.getWorldTransform(planeInConvex);
    planeInConvex.inverse();
    planeInConvex.mul(planeObj.getWorldTransform(tmpTrans));

    Transform convexInPlaneTrans = Stack.alloc(Transform.class);
    convexInPlaneTrans.inverse(planeObj.getWorldTransform(tmpTrans));
    convexInPlaneTrans.mul(convexObj.getWorldTransform(tmpTrans));

    Vector3f tmp = Stack.alloc(Vector3f.class);
    tmp.negate(planeNormal);
    planeInConvex.basis.transform(tmp);
View Full Code Here

    // recalc aabbs
    Transform convexInTriangleSpace = Stack.alloc(Transform.class);

    triBody.getWorldTransform(convexInTriangleSpace);
    convexInTriangleSpace.inverse();
    convexInTriangleSpace.mul(convexBody.getWorldTransform(Stack.alloc(Transform.class)));

    CollisionShape convexShape = (CollisionShape)convexBody.getCollisionShape();
    //CollisionShape* triangleShape = static_cast<btCollisionShape*>(triBody->m_collisionShape);
    convexShape.getAabb(convexInTriangleSpace, aabbMin, aabbMax);
View Full Code Here

    //const btVector3& from = convexbody->m_worldTransform.getOrigin();
    //btVector3 to = convexbody->m_interpolationWorldTransform.getOrigin();
    //todo: only do if the motion exceeds the 'radius'

    Transform triInv = triBody.getWorldTransform(Stack.alloc(Transform.class));
    triInv.inverse();

    Transform convexFromLocal = Stack.alloc(Transform.class);
    convexFromLocal.mul(triInv, convexbody.getWorldTransform(tmpTrans));

    Transform convexToLocal = Stack.alloc(Transform.class);
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.