public static boolean btSolveDantzigLCP(int n, java.nio.FloatBuffer A, java.nio.FloatBuffer x, java.nio.FloatBuffer b, java.nio.FloatBuffer w, int nub, java.nio.FloatBuffer lo, java.nio.FloatBuffer hi, java.nio.IntBuffer findex, btDantzigScratchMemory scratch) { assert A.isDirect() : "Buffer must be allocated direct."; assert x.isDirect() : "Buffer must be allocated direct."; assert b.isDirect() : "Buffer must be allocated direct."; assert w.isDirect() : "Buffer must be allocated direct."; assert lo.isDirect() : "Buffer must be allocated direct."; assert hi.isDirect() : "Buffer must be allocated direct."; assert findex.isDirect() : "Buffer must be allocated direct."; { return DynamicsJNI.btSolveDantzigLCP(n, A, x, b, w, nub, lo, hi, findex, btDantzigScratchMemory.getCPtr(scratch), scratch); } }
public void setJointVelMultiDof(int i, java.nio.FloatBuffer qdot) { assert qdot.isDirect() : "Buffer must be allocated direct."; { DynamicsJNI.btMultiBody_setJointVelMultiDof(swigCPtr, this, i, qdot); } }
public void calculatePrincipalAxisTransform(java.nio.FloatBuffer masses, Matrix4 principal, Vector3 inertia) { assert masses.isDirect() : "Buffer must be allocated direct."; { CollisionJNI.btCompoundShape_calculatePrincipalAxisTransform(swigCPtr, this, masses, principal, inertia); } }
public void setVertexBase(java.nio.FloatBuffer data) { assert data.isDirect() : "Buffer must be allocated direct."; { CollisionJNI.btIndexedMesh_setVertexBase(swigCPtr, this, data); } }
public void updateCacheMultiDof(java.nio.FloatBuffer pq) { assert pq.isDirect() : "Buffer must be allocated direct."; { DynamicsJNI.btMultibodyLink_updateCacheMultiDof__SWIG_0(swigCPtr, this, pq); } }
public void getOpenGLSubMatrix(java.nio.FloatBuffer m) { assert m.isDirect() : "Buffer must be allocated direct."; { LinearMathJNI.btMatrix3x3_getOpenGLSubMatrix(swigCPtr, this, m); } }
public float compute(java.nio.FloatBuffer coords, int stride, int count, float shrink, float shrinkClamp) { assert coords.isDirect() : "Buffer must be allocated direct."; { return LinearMathJNI.btConvexHullComputer_compute__SWIG_0(swigCPtr, this, coords, stride, count, shrink, shrinkClamp); } }
public void setJointPosMultiDof(int i, java.nio.FloatBuffer q) { assert q.isDirect() : "Buffer must be allocated direct."; { DynamicsJNI.btMultiBody_setJointPosMultiDof(swigCPtr, this, i, q); } }
public void setJointVelMultiDof(int i, java.nio.FloatBuffer qdot) { assert qdot.isDirect() : "Buffer must be allocated direct."; { DynamicsJNI.btMultiBody_setJointVelMultiDof(swigCPtr, this, i, qdot); } }
public void setMasses(java.nio.FloatBuffer value) { assert value.isDirect() : "Buffer must be allocated direct."; { SoftbodyJNI.SoftBodyClusterData_masses_set(swigCPtr, this, value); } }
public static void collideOCL(btDbvtNode root, java.nio.FloatBuffer normals, java.nio.FloatBuffer offsets, Vector3 sortaxis, int count, ICollide policy, boolean fullsort) { assert normals.isDirect() : "Buffer must be allocated direct."; assert offsets.isDirect() : "Buffer must be allocated direct."; { CollisionJNI.btDbvt_collideOCL__SWIG_2(btDbvtNode.getCPtr(root), root, normals, offsets, sortaxis, count, ICollide.getCPtr(policy), policy, fullsort); } }
public static void collideKDOP(btDbvtNode root, java.nio.FloatBuffer normals, java.nio.FloatBuffer offsets, int count, ICollide policy) { assert normals.isDirect() : "Buffer must be allocated direct."; assert offsets.isDirect() : "Buffer must be allocated direct."; { CollisionJNI.btDbvt_collideKDOP__SWIG_1(btDbvtNode.getCPtr(root), root, normals, offsets, count, ICollide.getCPtr(policy), policy); } }
public void getVertices(java.nio.FloatBuffer vertices, int vertexSize, int posOffset, java.nio.ShortBuffer indices, int indexOffset, int numVertices, java.nio.ShortBuffer indexMap, int indexMapOffset) { assert vertices.isDirect() : "Buffer must be allocated direct."; assert indices.isDirect() : "Buffer must be allocated direct."; assert indexMap.isDirect() : "Buffer must be allocated direct."; { SoftbodyJNI.btSoftBody_getVertices__SWIG_1(swigCPtr, this, vertices, vertexSize, posOffset, indices, indexOffset, numVertices, indexMap, indexMapOffset); } }
public void getVertices(java.nio.FloatBuffer vertices, int vertexSize, int posOffset, int normalOffset, java.nio.ShortBuffer indices, int indexOffset, int numVertices, java.nio.ShortBuffer indexMap, int indexMapOffset) { assert vertices.isDirect() : "Buffer must be allocated direct."; assert indices.isDirect() : "Buffer must be allocated direct."; assert indexMap.isDirect() : "Buffer must be allocated direct."; { SoftbodyJNI.btSoftBody_getVertices__SWIG_2(swigCPtr, this, vertices, vertexSize, posOffset, normalOffset, indices, indexOffset, numVertices, indexMap, indexMapOffset); } }
public void getVertices(java.nio.FloatBuffer vertices, int vertexSize, int posOffset, int normalOffset, java.nio.ShortBuffer indices, int indexOffset, int numVertices, java.nio.ShortBuffer indexMap, int indexMapOffset) { assert vertices.isDirect() : "Buffer must be allocated direct."; assert indices.isDirect() : "Buffer must be allocated direct."; assert indexMap.isDirect() : "Buffer must be allocated direct."; { SoftbodyJNI.btSoftBody_getVertices__SWIG_2(swigCPtr, this, vertices, vertexSize, posOffset, normalOffset, indices, indexOffset, numVertices, indexMap, indexMapOffset); } }
static private long SwigConstructbtSoftBody(btSoftBodyWorldInfo worldInfo, java.nio.FloatBuffer vertices, int vertexSize, int posOffset, int normalOffset, java.nio.ShortBuffer indices, int indexOffset, int numVertices, java.nio.ShortBuffer indexMap, int indexMapOffset) { assert vertices.isDirect() : "Buffer must be allocated direct."; assert indices.isDirect() : "Buffer must be allocated direct."; assert indexMap.isDirect() : "Buffer must be allocated direct."; return SoftbodyJNI.new_btSoftBody__SWIG_2(btSoftBodyWorldInfo.getCPtr(worldInfo), worldInfo, vertices, vertexSize, posOffset, normalOffset, indices, indexOffset, numVertices, indexMap, indexMapOffset); }
public static void btFindPenetrTouch(_btMprSimplex_t portal, java.nio.FloatBuffer depth, btVector3 dir, btVector3 pos) { assert depth.isDirect() : "Buffer must be allocated direct."; { CollisionJNI.btFindPenetrTouch(_btMprSimplex_t.getCPtr(portal), portal, depth, btVector3.getCPtr(dir), dir, btVector3.getCPtr(pos), pos); } }
public static void collideOCL(btDbvtNode root, btVector3 normals, java.nio.FloatBuffer offsets, Vector3 sortaxis, int count, ICollide policy, boolean fullsort) { assert offsets.isDirect() : "Buffer must be allocated direct."; { CollisionJNI.btDbvt_collideOCL__SWIG_0(btDbvtNode.getCPtr(root), root, btVector3.getCPtr(normals), normals, offsets, sortaxis, count, ICollide.getCPtr(policy), policy, fullsort); } }
public void fillConstraintJacobianMultiDof(int link, Vector3 contact_point, Vector3 normal_ang, Vector3 normal_lin, java.nio.FloatBuffer jac, btScalarArray scratch_r, btVector3Array scratch_v, SWIGTYPE_p_btAlignedObjectArrayT_btMatrix3x3_t scratch_m) { assert jac.isDirect() : "Buffer must be allocated direct."; { DynamicsJNI.btMultiBody_fillConstraintJacobianMultiDof(swigCPtr, this, link, contact_point, normal_ang, normal_lin, jac, btScalarArray.getCPtr(scratch_r), scratch_r, btVector3Array.getCPtr(scratch_v), scratch_v, SWIGTYPE_p_btAlignedObjectArrayT_btMatrix3x3_t.getCPtr(scratch_m)); } }
public static btSoftBody CreateFromTriMesh(btSoftBodyWorldInfo worldInfo, java.nio.FloatBuffer vertices, java.nio.IntBuffer triangles, int ntriangles, boolean randomizeConstraints) { assert vertices.isDirect() : "Buffer must be allocated direct."; assert triangles.isDirect() : "Buffer must be allocated direct."; { long cPtr = SoftbodyJNI.btSoftBodyHelpers_CreateFromTriMesh__SWIG_0(btSoftBodyWorldInfo.getCPtr(worldInfo), worldInfo, vertices, triangles, ntriangles, randomizeConstraints); return (cPtr == 0) ? null : new btSoftBody(cPtr, false); } }