コード例 #1
0
ファイル: PxShape.cs プロジェクト: kewur/PhysX-Sharp
 public virtual void setMaterials(SWIGTYPE_p_p_physx__PxMaterial materials, SWIGTYPE_p_uint16_t materialCount)
 {
     physxPINVOKE.PxShape_setMaterials(swigCPtr, SWIGTYPE_p_p_physx__PxMaterial.getCPtr(materials), SWIGTYPE_p_uint16_t.getCPtr(materialCount));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public virtual void overlap(PxGeometry geometry, PxTransform pose, SWIGTYPE_p_uint16_t maxTouchHits)
 {
     physxPINVOKE.PxBatchQuery_overlap__SWIG_3(swigCPtr, PxGeometry.getCPtr(geometry), PxTransform.getCPtr(pose), SWIGTYPE_p_uint16_t.getCPtr(maxTouchHits));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 public virtual void overlap(PxGeometry geometry, PxTransform pose, SWIGTYPE_p_uint16_t maxTouchHits, PxQueryFilterData filterData, SWIGTYPE_p_void userData, PxQueryCache cache)
 {
     physxPINVOKE.PxBatchQuery_overlap__SWIG_0(swigCPtr, PxGeometry.getCPtr(geometry), PxTransform.getCPtr(pose), SWIGTYPE_p_uint16_t.getCPtr(maxTouchHits), PxQueryFilterData.getCPtr(filterData), SWIGTYPE_p_void.getCPtr(userData), PxQueryCache.getCPtr(cache));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
 public virtual void raycast(PxVec3 origin, PxVec3 unitDir, float distance, SWIGTYPE_p_uint16_t maxTouchHits)
 {
     physxPINVOKE.PxBatchQuery_raycast__SWIG_4(swigCPtr, PxVec3.getCPtr(origin), PxVec3.getCPtr(unitDir), distance, SWIGTYPE_p_uint16_t.getCPtr(maxTouchHits));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #5
0
 public virtual void raycast(PxVec3 origin, PxVec3 unitDir, float distance, SWIGTYPE_p_uint16_t maxTouchHits, SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t hitFlags, PxQueryFilterData filterData)
 {
     physxPINVOKE.PxBatchQuery_raycast__SWIG_2(swigCPtr, PxVec3.getCPtr(origin), PxVec3.getCPtr(unitDir), distance, SWIGTYPE_p_uint16_t.getCPtr(maxTouchHits), SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t.getCPtr(hitFlags), PxQueryFilterData.getCPtr(filterData));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #6
0
        internal Extents Assign(SWIGTYPE_p_uint16_t array)
        {
            Extents ret = new Extents(NDalicPINVOKE.Extents_Assign__SWIG_1(swigCPtr, SWIGTYPE_p_uint16_t.getCPtr(array)), false);

            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SWIGTYPE_p_uint16_t obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
コード例 #8
0
ファイル: PxShape.cs プロジェクト: kewur/PhysX-Sharp
        public virtual SWIGTYPE_p_uint16_t getNbMaterials()
        {
            SWIGTYPE_p_uint16_t ret = new SWIGTYPE_p_uint16_t(physxPINVOKE.PxShape_getNbMaterials(swigCPtr), true);

            return(ret);
        }
コード例 #9
0
        public SWIGTYPE_p_uint16_t getMaterialIndex1()
        {
            SWIGTYPE_p_uint16_t ret = new SWIGTYPE_p_uint16_t(physxPINVOKE.PxContactStreamIterator_getMaterialIndex1(swigCPtr), true);

            return(ret);
        }
コード例 #10
0
ファイル: PxBase.cs プロジェクト: kewur/PhysX-Sharp
        public SWIGTYPE_p_uint16_t getConcreteType()
        {
            SWIGTYPE_p_uint16_t ret = new SWIGTYPE_p_uint16_t(physxPINVOKE.PxBase_getConcreteType(swigCPtr), true);

            return(ret);
        }
コード例 #11
0
        public virtual PxShape createShape(PxGeometry geometry, SWIGTYPE_p_p_physx__PxMaterial materials, SWIGTYPE_p_uint16_t materialCount)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxRigidActor_createShape__SWIG_1(swigCPtr, PxGeometry.getCPtr(geometry), SWIGTYPE_p_p_physx__PxMaterial.getCPtr(materials), SWIGTYPE_p_uint16_t.getCPtr(materialCount));
            PxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new PxShape(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #12
0
 public virtual void sweep(PxGeometry geometry, PxTransform pose, PxVec3 unitDir, float distance, SWIGTYPE_p_uint16_t maxTouchHits)
 {
     physxPINVOKE.PxBatchQuery_sweep__SWIG_5(swigCPtr, PxGeometry.getCPtr(geometry), PxTransform.getCPtr(pose), PxVec3.getCPtr(unitDir), distance, SWIGTYPE_p_uint16_t.getCPtr(maxTouchHits));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #13
0
 public virtual void sweep(PxGeometry geometry, PxTransform pose, PxVec3 unitDir, float distance, SWIGTYPE_p_uint16_t maxTouchHits, SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t hitFlags, PxQueryFilterData filterData)
 {
     physxPINVOKE.PxBatchQuery_sweep__SWIG_3(swigCPtr, PxGeometry.getCPtr(geometry), PxTransform.getCPtr(pose), PxVec3.getCPtr(unitDir), distance, SWIGTYPE_p_uint16_t.getCPtr(maxTouchHits), SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t.getCPtr(hitFlags), PxQueryFilterData.getCPtr(filterData));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #14
0
        public virtual PxShape createShape(PxGeometry geometry, SWIGTYPE_p_p_physx__PxMaterial materials, SWIGTYPE_p_uint16_t materialCount, bool isExclusive, SWIGTYPE_p_physx__PxFlagsT_physx__PxShapeFlag__Enum_uint8_t_t shapeFlags)
        {
            global::System.IntPtr cPtr = physxPINVOKE.PxPhysics_createShape__SWIG_3(swigCPtr, PxGeometry.getCPtr(geometry), SWIGTYPE_p_p_physx__PxMaterial.getCPtr(materials), SWIGTYPE_p_uint16_t.getCPtr(materialCount), isExclusive, SWIGTYPE_p_physx__PxFlagsT_physx__PxShapeFlag__Enum_uint8_t_t.getCPtr(shapeFlags));
            PxShape ret = (cPtr == global::System.IntPtr.Zero) ? null : new PxShape(cPtr, false);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }