public SWIGTYPE_p_btCollisionAlgorithm findAlgorithm(SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap)
        {
            IntPtr cPtr = BulletCollisionPINVOKE.btCollisionDispatcher_findAlgorithm__SWIG_1(swigCPtr, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap));
            SWIGTYPE_p_btCollisionAlgorithm ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btCollisionAlgorithm(cPtr, false);

            return(ret);
        }
 public void setTimeStepAndCounters(float collisionMarginTriangle, SWIGTYPE_p_btCollisionObjectWrapper triObjWrap, SWIGTYPE_p_btDispatcherInfo dispatchInfo, SWIGTYPE_p_btManifoldResult resultOut)
 {
     BulletSoftBodyPINVOKE.btSoftBodyTriangleCallback_setTimeStepAndCounters(swigCPtr, collisionMarginTriangle, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(triObjWrap), SWIGTYPE_p_btDispatcherInfo.getCPtr(dispatchInfo), SWIGTYPE_p_btManifoldResult.getCPtr(resultOut));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 3
0
 public virtual void processCollision(SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, SWIGTYPE_p_btDispatcherInfo dispatchInfo, SWIGTYPE_p_btManifoldResult resultOut)
 {
     BulletSoftBodyPINVOKE.btSoftRigidCollisionAlgorithm_processCollision(swigCPtr, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), SWIGTYPE_p_btDispatcherInfo.getCPtr(dispatchInfo), SWIGTYPE_p_btManifoldResult.getCPtr(resultOut));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public SWIGTYPE_p_btCollisionAlgorithm findAlgorithm(SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, SWIGTYPE_p_btPersistentManifold sharedManifold)
 {
     IntPtr cPtr = BulletCollisionPINVOKE.btCollisionDispatcher_findAlgorithm__SWIG_0(swigCPtr, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), SWIGTYPE_p_btPersistentManifold.getCPtr(sharedManifold));
     SWIGTYPE_p_btCollisionAlgorithm ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btCollisionAlgorithm(cPtr, false);
     return ret;
 }
 public void setTimeStepAndCounters(float collisionMarginTriangle, SWIGTYPE_p_btCollisionObjectWrapper triObjWrap, SWIGTYPE_p_btDispatcherInfo dispatchInfo, SWIGTYPE_p_btManifoldResult resultOut)
 {
     BulletSoftBodyPINVOKE.btSoftBodyTriangleCallback_setTimeStepAndCounters(swigCPtr, collisionMarginTriangle, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(triObjWrap), SWIGTYPE_p_btDispatcherInfo.getCPtr(dispatchInfo), SWIGTYPE_p_btManifoldResult.getCPtr(resultOut));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
 }
 public btSoftBodyTriangleCallback(SWIGTYPE_p_btDispatcher dispatcher, SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, bool isSwapped)
     : this(BulletSoftBodyPINVOKE.new_btSoftBodyTriangleCallback(SWIGTYPE_p_btDispatcher.getCPtr(dispatcher), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), isSwapped), true)
 {
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_btCollisionObjectWrapper obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public static void rayTestSingleInternal(SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, SWIGTYPE_p_btCollisionObjectWrapper collisionObjectWrap, SWIGTYPE_p_btCollisionWorld__RayResultCallback resultCallback) {
   BulletCollisionPINVOKE.btCollisionWorld_rayTestSingleInternal(SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(collisionObjectWrap), SWIGTYPE_p_btCollisionWorld__RayResultCallback.getCPtr(resultCallback));
   if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 9
0
 public btSoftRigidCollisionAlgorithm(SWIGTYPE_p_btPersistentManifold mf, SWIGTYPE_p_btCollisionAlgorithmConstructionInfo ci, SWIGTYPE_p_btCollisionObjectWrapper col0, SWIGTYPE_p_btCollisionObjectWrapper col1Wrap, bool isSwapped) : this(BulletSoftBodyPINVOKE.new_btSoftRigidCollisionAlgorithm(SWIGTYPE_p_btPersistentManifold.getCPtr(mf), SWIGTYPE_p_btCollisionAlgorithmConstructionInfo.getCPtr(ci), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(col0), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(col1Wrap), isSwapped), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Esempio n. 10
0
 public bool checkContact(SWIGTYPE_p_btCollisionObjectWrapper colObjWrap, SWIGTYPE_p_btVector3 x, float margin, SWIGTYPE_p_btSoftBody__sCti cti)
 {
     bool ret = BulletSoftBodyPINVOKE.btSoftBody_checkContact(swigCPtr, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(colObjWrap), SWIGTYPE_p_btVector3.getCPtr(x), margin, SWIGTYPE_p_btSoftBody__sCti.getCPtr(cti));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
 public btSoftBodyConcaveCollisionAlgorithm(SWIGTYPE_p_btCollisionAlgorithmConstructionInfo ci, SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, bool isSwapped) : this(BulletSoftBodyPINVOKE.new_btSoftBodyConcaveCollisionAlgorithm(SWIGTYPE_p_btCollisionAlgorithmConstructionInfo.getCPtr(ci), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), isSwapped), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public static void objectQuerySingleInternal(SWIGTYPE_p_btConvexShape castShape, SWIGTYPE_p_btTransform convexFromTrans, SWIGTYPE_p_btTransform convexToTrans, SWIGTYPE_p_btCollisionObjectWrapper colObjWrap, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback resultCallback, float allowedPenetration)
 {
     BulletCollisionPINVOKE.btCollisionWorld_objectQuerySingleInternal(SWIGTYPE_p_btConvexShape.getCPtr(castShape), SWIGTYPE_p_btTransform.getCPtr(convexFromTrans), SWIGTYPE_p_btTransform.getCPtr(convexToTrans), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(colObjWrap), SWIGTYPE_p_btCollisionWorld__ConvexResultCallback.getCPtr(resultCallback), allowedPenetration);
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public static void rayTestSingleInternal(SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, SWIGTYPE_p_btCollisionObjectWrapper collisionObjectWrap, SWIGTYPE_p_btCollisionWorld__RayResultCallback resultCallback)
 {
     BulletCollisionPINVOKE.btCollisionWorld_rayTestSingleInternal(SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(collisionObjectWrap), SWIGTYPE_p_btCollisionWorld__RayResultCallback.getCPtr(resultCallback));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public btSoftBodyTriangleCallback(SWIGTYPE_p_btDispatcher dispatcher, SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, bool isSwapped) : this(BulletSoftBodyPINVOKE.new_btSoftBodyTriangleCallback(SWIGTYPE_p_btDispatcher.getCPtr(dispatcher), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), isSwapped), true)
 {
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_btCollisionObjectWrapper obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Esempio n. 16
0
 public virtual void processCollision(btSoftBody arg0, SWIGTYPE_p_btCollisionObjectWrapper arg1)
 {
     BulletSoftBodyPINVOKE.btSoftBodySolver_processCollision__SWIG_0(swigCPtr, btSoftBody.getCPtr(arg0), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(arg1));
 }
 public virtual void processCollision(btSoftBody arg0, SWIGTYPE_p_btCollisionObjectWrapper arg1)
 {
     BulletSoftBodyPINVOKE.btSoftBodySolver_processCollision__SWIG_0(swigCPtr, btSoftBody.getCPtr(arg0), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(arg1));
 }
 public btSoftBodyConcaveCollisionAlgorithm(SWIGTYPE_p_btCollisionAlgorithmConstructionInfo ci, SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, bool isSwapped)
     : this(BulletSoftBodyPINVOKE.new_btSoftBodyConcaveCollisionAlgorithm(SWIGTYPE_p_btCollisionAlgorithmConstructionInfo.getCPtr(ci), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), isSwapped), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
 }
Esempio n. 19
0
 public void defaultCollisionHandler(SWIGTYPE_p_btCollisionObjectWrapper pcoWrap)
 {
     BulletSoftBodyPINVOKE.btSoftBody_defaultCollisionHandler__SWIG_0(swigCPtr, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(pcoWrap));
 }
Esempio n. 20
0
 public btSoftSoftCollisionAlgorithm(SWIGTYPE_p_btPersistentManifold mf, SWIGTYPE_p_btCollisionAlgorithmConstructionInfo ci, SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap) : this(BulletSoftBodyPINVOKE.new_btSoftSoftCollisionAlgorithm__SWIG_1(SWIGTYPE_p_btPersistentManifold.getCPtr(mf), SWIGTYPE_p_btCollisionAlgorithmConstructionInfo.getCPtr(ci), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap)), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public btSoftSoftCollisionAlgorithm(SWIGTYPE_p_btPersistentManifold mf, SWIGTYPE_p_btCollisionAlgorithmConstructionInfo ci, SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap)
     : this(BulletSoftBodyPINVOKE.new_btSoftSoftCollisionAlgorithm__SWIG_1(SWIGTYPE_p_btPersistentManifold.getCPtr(mf), SWIGTYPE_p_btCollisionAlgorithmConstructionInfo.getCPtr(ci), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap)), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
 }
 public virtual void processCollision(SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, SWIGTYPE_p_btDispatcherInfo dispatchInfo, SWIGTYPE_p_btManifoldResult resultOut)
 {
     BulletSoftBodyPINVOKE.btSoftSoftCollisionAlgorithm_processCollision(swigCPtr, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), SWIGTYPE_p_btDispatcherInfo.getCPtr(dispatchInfo), SWIGTYPE_p_btManifoldResult.getCPtr(resultOut));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void objectQuerySingleInternal(SWIGTYPE_p_btConvexShape castShape, SWIGTYPE_p_btTransform convexFromTrans, SWIGTYPE_p_btTransform convexToTrans, SWIGTYPE_p_btCollisionObjectWrapper colObjWrap, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback resultCallback, float allowedPenetration) {
   BulletCollisionPINVOKE.btCollisionWorld_objectQuerySingleInternal(SWIGTYPE_p_btConvexShape.getCPtr(castShape), SWIGTYPE_p_btTransform.getCPtr(convexFromTrans), SWIGTYPE_p_btTransform.getCPtr(convexToTrans), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(colObjWrap), SWIGTYPE_p_btCollisionWorld__ConvexResultCallback.getCPtr(resultCallback), allowedPenetration);
   if (BulletCollisionPINVOKE.SWIGPendingException.Pending) throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
 }
 public btSoftRigidCollisionAlgorithm(SWIGTYPE_p_btPersistentManifold mf, SWIGTYPE_p_btCollisionAlgorithmConstructionInfo ci, SWIGTYPE_p_btCollisionObjectWrapper col0, SWIGTYPE_p_btCollisionObjectWrapper col1Wrap, bool isSwapped)
     : this(BulletSoftBodyPINVOKE.new_btSoftRigidCollisionAlgorithm(SWIGTYPE_p_btPersistentManifold.getCPtr(mf), SWIGTYPE_p_btCollisionAlgorithmConstructionInfo.getCPtr(ci), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(col0), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(col1Wrap), isSwapped), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
 }