Exemplo n.º 1
0
        public static btCollisionObject GetObjectFromSwigPtr(SWIGTYPE_p_btCollisionObject ptr)
        {
            HandleRef handle = SWIGTYPE_p_btCollisionObject.getCPtr(ptr);
              if (handle.Wrapper == null || handle.Handle == IntPtr.Zero)
              {
              return null;
              }

              return new btCollisionObject(handle.Handle, false);
        }
 public virtual void addCollisionObject(SWIGTYPE_p_btCollisionObject collisionObject, short collisionFilterGroup) {
   BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_addCollisionObject__SWIG_1(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject), collisionFilterGroup);
 }
 public virtual bool checkCollideWithOverride(SWIGTYPE_p_btCollisionObject co) {
   bool ret = BulletDynamicsPINVOKE.btRigidBody_checkCollideWithOverride(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(co));
   return ret;
 }
 public virtual float calculateTimeOfImpact(SWIGTYPE_p_btCollisionObject body0, SWIGTYPE_p_btCollisionObject body1, SWIGTYPE_p_btDispatcherInfo dispatchInfo, SWIGTYPE_p_btManifoldResult resultOut)
 {
     float ret = BulletSoftBodyPINVOKE.btSoftSoftCollisionAlgorithm_calculateTimeOfImpact(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(body0), SWIGTYPE_p_btCollisionObject.getCPtr(body1), SWIGTYPE_p_btDispatcherInfo.getCPtr(dispatchInfo), SWIGTYPE_p_btManifoldResult.getCPtr(resultOut));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     return ret;
 }
Exemplo n.º 5
0
        public virtual float calculateTimeOfImpact(SWIGTYPE_p_btCollisionObject body0, SWIGTYPE_p_btCollisionObject body1, SWIGTYPE_p_btDispatcherInfo dispatchInfo, SWIGTYPE_p_btManifoldResult resultOut)
        {
            float ret = BulletSoftBodyPINVOKE.btSoftSoftCollisionAlgorithm_calculateTimeOfImpact(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(body0), SWIGTYPE_p_btCollisionObject.getCPtr(body1), SWIGTYPE_p_btDispatcherInfo.getCPtr(dispatchInfo), SWIGTYPE_p_btManifoldResult.getCPtr(resultOut));

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
 public LocalRayResult(SWIGTYPE_p_btCollisionObject collisionObject, LocalShapeInfo localShapeInfo, SWIGTYPE_p_btVector3 hitNormalLocal, float hitFraction) : this(BulletSoftBodyPINVOKE.new_LocalRayResult(SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject), LocalShapeInfo.getCPtr(localShapeInfo), SWIGTYPE_p_btVector3.getCPtr(hitNormalLocal), hitFraction), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemplo n.º 7
0
 public Body(SWIGTYPE_p_btCollisionObject colObj) : this(BulletSoftBodyPINVOKE.new_Body__SWIG_2(SWIGTYPE_p_btCollisionObject.getCPtr(colObj)), true)
 {
 }
Exemplo n.º 8
0
 public Body(SWIGTYPE_p_btCollisionObject colObj)
     : this(BulletSoftBodyPINVOKE.new_Body__SWIG_2(SWIGTYPE_p_btCollisionObject.getCPtr(colObj)), true)
 {
 }
Exemplo n.º 9
0
 public LocalRayResult(SWIGTYPE_p_btCollisionObject collisionObject, LocalShapeInfo localShapeInfo, SWIGTYPE_p_btVector3 hitNormalLocal, float hitFraction)
     : this(BulletSoftBodyPINVOKE.new_LocalRayResult(SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject), LocalShapeInfo.getCPtr(localShapeInfo), SWIGTYPE_p_btVector3.getCPtr(hitNormalLocal), hitFraction), true)
 {
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
 }
 public static void rayTestSingle(SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, SWIGTYPE_p_btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, RayResultCallback resultCallback)
 {
     BulletSoftBodyPINVOKE.btSoftRigidDynamicsWorld_rayTestSingle(SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), RayResultCallback.getCPtr(resultCallback));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending) throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
 }
 public virtual void removeCollisionObject(SWIGTYPE_p_btCollisionObject collisionObject)
 {
     BulletSoftBodyPINVOKE.btSoftRigidDynamicsWorld_removeCollisionObject(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject));
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_btCollisionObject obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Exemplo n.º 13
0
 public virtual void removeCollisionObject(SWIGTYPE_p_btCollisionObject collisionObject)
 {
     BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_removeCollisionObject(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject));
 }
Exemplo n.º 14
0
 public virtual void addCollisionObject(SWIGTYPE_p_btCollisionObject collisionObject, short collisionFilterGroup)
 {
     BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_addCollisionObject__SWIG_1(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject), collisionFilterGroup);
 }
 public virtual void removeCollisionObject(SWIGTYPE_p_btCollisionObject collisionObject) {
   BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_removeCollisionObject(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject));
 }
 internal static HandleRef getCPtr(SWIGTYPE_p_btCollisionObject obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
 public virtual void removeCollisionObject(SWIGTYPE_p_btCollisionObject collisionObject)
 {
     BulletSoftBodyPINVOKE.btSoftRigidDynamicsWorld_removeCollisionObject(swigCPtr, SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject));
 }
Exemplo n.º 18
0
 public static btSoftBody upcast(SWIGTYPE_p_btCollisionObject colObj)
 {
     IntPtr cPtr = BulletSoftBodyPINVOKE.btSoftBody_upcast__SWIG_0(SWIGTYPE_p_btCollisionObject.getCPtr(colObj));
     btSoftBody ret = (cPtr == IntPtr.Zero) ? null : new btSoftBody(cPtr, false);
     return ret;
 }
 public static void rayTestSingle(SWIGTYPE_p_btTransform rayFromTrans, SWIGTYPE_p_btTransform rayToTrans, SWIGTYPE_p_btCollisionObject collisionObject, SWIGTYPE_p_btCollisionShape collisionShape, SWIGTYPE_p_btTransform colObjWorldTransform, RayResultCallback resultCallback)
 {
     BulletSoftBodyPINVOKE.btSoftRigidDynamicsWorld_rayTestSingle(SWIGTYPE_p_btTransform.getCPtr(rayFromTrans), SWIGTYPE_p_btTransform.getCPtr(rayToTrans), SWIGTYPE_p_btCollisionObject.getCPtr(collisionObject), SWIGTYPE_p_btCollisionShape.getCPtr(collisionShape), SWIGTYPE_p_btTransform.getCPtr(colObjWorldTransform), RayResultCallback.getCPtr(resultCallback));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }