Examples of localGetSupportingVertex()


Examples of com.bulletphysics.collision.shapes.ConvexShape.localGetSupportingVertex()

    Vector3f tmp = Stack.alloc(Vector3f.class);
    tmp.negate(planeNormal);
    planeInConvex.basis.transform(tmp);

    Vector3f vtx = convexShape.localGetSupportingVertex(tmp, Stack.alloc(Vector3f.class));
    Vector3f vtxInPlane = Stack.alloc(vtx);
    convexInPlaneTrans.transform(vtxInPlane);

    float distance = (planeNormal.dot(vtxInPlane) - planeConstant);
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.