protected CreateFunc(final String className, long cPtr, boolean cMemoryOwn) {
   super(
       className,
       SoftbodyJNI.btSoftBodyConcaveCollisionAlgorithm_CreateFunc_SWIGUpcast(cPtr),
       cMemoryOwn);
   swigCPtr = cPtr;
 }
示例#2
0
 public static SWIGTYPE_p_f_p_btSoftBody_float__void getSolver(
     SWIGTYPE_p_btSoftBody__eVSolver___ solver) {
   long cPtr =
       SoftbodyJNI.btSoftBody_getSolver__SWIG_1(
           SWIGTYPE_p_btSoftBody__eVSolver___.getCPtr(solver));
   return (cPtr == 0) ? null : new SWIGTYPE_p_f_p_btSoftBody_float__void(cPtr, false);
 }
示例#3
0
 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);
   }
 }
 @Override
 protected void reset(long cPtr, boolean cMemoryOwn) {
   if (!destroyed) destroy();
   super.reset(
       SoftbodyJNI.btSoftBodyConcaveCollisionAlgorithm_CreateFunc_SWIGUpcast(swigCPtr = cPtr),
       cMemoryOwn);
 }
示例#5
0
 private static 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);
 }
示例#6
0
 public void getVertices(
     java.nio.FloatBuffer buffer, int vertexCount, int vertexSize, int posOffset) {
   assert buffer.isDirect() : "Buffer must be allocated direct.";
   {
     SoftbodyJNI.btSoftBody_getVertices__SWIG_0(
         swigCPtr, this, buffer, vertexCount, vertexSize, posOffset);
   }
 }
示例#7
0
 public void appendAngularJoint(SWIGTYPE_p_btSoftBody__AJoint__Specs specs, btSoftBody body) {
   SoftbodyJNI.btSoftBody_appendAngularJoint__SWIG_3(
       swigCPtr,
       this,
       SWIGTYPE_p_btSoftBody__AJoint__Specs.getCPtr(specs),
       btSoftBody.getCPtr(body),
       body);
 }
示例#8
0
 public void appendLinearJoint(
     SWIGTYPE_p_btSoftBody__LJoint__Specs specs, SWIGTYPE_p_btSoftBody__Body body) {
   SoftbodyJNI.btSoftBody_appendLinearJoint__SWIG_1(
       swigCPtr,
       this,
       SWIGTYPE_p_btSoftBody__LJoint__Specs.getCPtr(specs),
       SWIGTYPE_p_btSoftBody__Body.getCPtr(body));
 }
示例#9
0
 public static void clusterImpulse(
     SWIGTYPE_p_btSoftBody__Cluster cluster,
     Vector3 rpos,
     SWIGTYPE_p_btSoftBody__Impulse impulse) {
   SoftbodyJNI.btSoftBody_clusterImpulse(
       SWIGTYPE_p_btSoftBody__Cluster.getCPtr(cluster),
       rpos,
       SWIGTYPE_p_btSoftBody__Impulse.getCPtr(impulse));
 }
示例#10
0
 public void appendAnchor(
     int node, btRigidBody body, Vector3 localPivot, boolean disableCollisionBetweenLinkedBodies) {
   SoftbodyJNI.btSoftBody_appendAnchor__SWIG_4(
       swigCPtr,
       this,
       node,
       btRigidBody.getCPtr(body),
       body,
       localPivot,
       disableCollisionBetweenLinkedBodies);
 }
示例#11
0
 public void appendLink(Node node0, Node node1, Material mat) {
   SoftbodyJNI.btSoftBody_appendLink__SWIG_7(
       swigCPtr,
       this,
       Node.getCPtr(node0),
       node0,
       Node.getCPtr(node1),
       node1,
       Material.getCPtr(mat),
       mat);
 }
示例#12
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       SoftbodyJNI.delete_SoftBodyConfigData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       SoftbodyJNI.delete_btSoftBodyConcaveCollisionAlgorithm(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#14
0
 public void appendAngularJoint(
     SWIGTYPE_p_btSoftBody__AJoint__Specs specs,
     SWIGTYPE_p_btSoftBody__Cluster body0,
     SWIGTYPE_p_btSoftBody__Body body1) {
   SoftbodyJNI.btSoftBody_appendAngularJoint__SWIG_0(
       swigCPtr,
       this,
       SWIGTYPE_p_btSoftBody__AJoint__Specs.getCPtr(specs),
       SWIGTYPE_p_btSoftBody__Cluster.getCPtr(body0),
       SWIGTYPE_p_btSoftBody__Body.getCPtr(body1));
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       SoftbodyJNI.delete_btSoftClusterCollisionShape(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
示例#16
0
 public void appendAnchor(
     int node, btRigidBody body, boolean disableCollisionBetweenLinkedBodies, float influence) {
   SoftbodyJNI.btSoftBody_appendAnchor__SWIG_0(
       swigCPtr,
       this,
       node,
       btRigidBody.getCPtr(body),
       body,
       disableCollisionBetweenLinkedBodies,
       influence);
 }
示例#17
0
 public boolean checkContact(
     btCollisionObjectWrapper colObjWrap, Vector3 x, float margin, sCti cti) {
   return SoftbodyJNI.btSoftBody_checkContact(
       swigCPtr,
       this,
       btCollisionObjectWrapper.getCPtr(colObjWrap),
       colObjWrap,
       x,
       margin,
       sCti.getCPtr(cti),
       cti);
 }
示例#18
0
 public void appendNote(String text, Vector3 o, btVector4 c, Node n0, Node n1) {
   SoftbodyJNI.btSoftBody_appendNote__SWIG_2(
       swigCPtr,
       this,
       text,
       o,
       btVector4.getCPtr(c),
       c,
       Node.getCPtr(n0),
       n0,
       Node.getCPtr(n1),
       n1);
 }
 public btSoftBodyConcaveCollisionAlgorithm(
     btCollisionAlgorithmConstructionInfo ci,
     btCollisionObjectWrapper body0Wrap,
     btCollisionObjectWrapper body1Wrap,
     boolean isSwapped) {
   this(
       SoftbodyJNI.new_btSoftBodyConcaveCollisionAlgorithm(
           btCollisionAlgorithmConstructionInfo.getCPtr(ci),
           ci,
           btCollisionObjectWrapper.getCPtr(body0Wrap),
           body0Wrap,
           btCollisionObjectWrapper.getCPtr(body1Wrap),
           body1Wrap,
           isSwapped),
       true);
 }
示例#20
0
 public int rayTest(
     Vector3 rayFrom,
     Vector3 rayTo,
     SWIGTYPE_p_float mint,
     SWIGTYPE_p_btSoftBody__eFeature___ feature,
     SWIGTYPE_p_int index,
     boolean bcountonly) {
   return SoftbodyJNI.btSoftBody_rayTest__SWIG_1(
       swigCPtr,
       this,
       rayFrom,
       rayTo,
       SWIGTYPE_p_float.getCPtr(mint),
       SWIGTYPE_p_btSoftBody__eFeature___.getCPtr(feature),
       SWIGTYPE_p_int.getCPtr(index),
       bcountonly);
 }
 protected btSoftClusterCollisionShape(final String className, long cPtr, boolean cMemoryOwn) {
   super(className, SoftbodyJNI.btSoftClusterCollisionShape_SWIGUpcast(cPtr), cMemoryOwn);
   swigCPtr = cPtr;
 }
 public void clearCache() {
   SoftbodyJNI.btSoftBodyConcaveCollisionAlgorithm_clearCache(swigCPtr, this);
 }
 public SwappedCreateFunc() {
   this(SoftbodyJNI.new_btSoftBodyConcaveCollisionAlgorithm_SwappedCreateFunc(), true);
 }
 public int getShapeType() {
   return SoftbodyJNI.btSoftClusterCollisionShape_getShapeType(swigCPtr, this);
 }
 public btSoftClusterCollisionShape(SWIGTYPE_p_btSoftBody__Cluster cluster) {
   this(
       SoftbodyJNI.new_btSoftClusterCollisionShape(
           SWIGTYPE_p_btSoftBody__Cluster.getCPtr(cluster)),
       true);
 }
 public SWIGTYPE_p_btSoftBody__Cluster getCluster() {
   long cPtr = SoftbodyJNI.btSoftClusterCollisionShape_cluster_get(swigCPtr, this);
   return (cPtr == 0) ? null : new SWIGTYPE_p_btSoftBody__Cluster(cPtr, false);
 }
 public void setCluster(SWIGTYPE_p_btSoftBody__Cluster value) {
   SoftbodyJNI.btSoftClusterCollisionShape_cluster_set(
       swigCPtr, this, SWIGTYPE_p_btSoftBody__Cluster.getCPtr(value));
 }
 @Override
 protected void reset(long cPtr, boolean cMemoryOwn) {
   if (!destroyed) destroy();
   super.reset(SoftbodyJNI.btSoftClusterCollisionShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);
 }
示例#29
0
 public float getDrag() {
   return SoftbodyJNI.SoftBodyConfigData_drag_get(swigCPtr, this);
 }
示例#30
0
 public void setLift(float value) {
   SoftbodyJNI.SoftBodyConfigData_lift_set(swigCPtr, this, value);
 }