Example #1
0
 public PxVec3(PxVec3 v) : this(physxPINVOKE.new_PxVec3__SWIG_4(PxVec3.getCPtr(v)), true)
 {
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #2
0
 public virtual void setTargetVelocity(PxVec3 velocity)
 {
     physxPINVOKE.PxArticulationJoint_setTargetVelocity(swigCPtr, PxVec3.getCPtr(velocity));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public virtual void setAngularVelocity(PxVec3 angVel)
 {
     physxPINVOKE.PxRigidBody_setAngularVelocity__SWIG_1(swigCPtr, PxVec3.getCPtr(angVel));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public virtual void visualizeLine(PxVec3 p0, PxVec3 p1, SWIGTYPE_p_uint32_t color)
 {
     physxPINVOKE.PxConstraintVisualizer_visualizeLine(swigCPtr, PxVec3.getCPtr(p0), PxVec3.getCPtr(p1), SWIGTYPE_p_uint32_t.getCPtr(color));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
 public virtual void addTorque(PxVec3 torque, PxForceMode.Enum mode)
 {
     physxPINVOKE.PxRigidBody_addTorque__SWIG_1(swigCPtr, PxVec3.getCPtr(torque), (int)mode);
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 public virtual void raycast(PxVec3 origin, PxVec3 unitDir, float maxDist, PxSpatialLocationCallback callback)
 {
     physxPINVOKE.PxSpatialIndex_raycast(swigCPtr, PxVec3.getCPtr(origin), PxVec3.getCPtr(unitDir), maxDist, PxSpatialLocationCallback.getCPtr(callback));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
 public virtual void raycast(PxVec3 origin, PxVec3 unitDir)
 {
     physxPINVOKE.PxBatchQuery_raycast__SWIG_6(swigCPtr, PxVec3.getCPtr(origin), PxVec3.getCPtr(unitDir));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #8
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();
     }
 }
Example #9
0
 public void include(PxVec3 v)
 {
     physxPINVOKE.PxBounds3_include__SWIG_0(swigCPtr, PxVec3.getCPtr(v));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #10
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();
     }
 }
Example #11
0
 public virtual void addForce(PxVec3 force, PxForceMode.Enum mode, bool autowake)
 {
     physxPINVOKE.PxRigidBody_addForce__SWIG_0(swigCPtr, PxVec3.getCPtr(force), (int)mode, autowake);
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #12
0
 public virtual void getForce(PxVec3 linear, PxVec3 angular)
 {
     physxPINVOKE.PxConstraint_getForce(swigCPtr, PxVec3.getCPtr(linear), PxVec3.getCPtr(angular));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #13
0
 public virtual void addTorque(PxVec3 torque)
 {
     physxPINVOKE.PxRigidBody_addTorque__SWIG_2(swigCPtr, PxVec3.getCPtr(torque));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #14
0
 public virtual void setMassSpaceInertiaTensor(PxVec3 m)
 {
     physxPINVOKE.PxRigidBody_setMassSpaceInertiaTensor(swigCPtr, PxVec3.getCPtr(m));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #15
0
 public virtual void onOriginShift(PxVec3 shift)
 {
     physxPINVOKE.PxConstraintConnector_onOriginShift(swigCPtr, PxVec3.getCPtr(shift));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #16
0
 public virtual void sweep(PxBounds3 aabb, PxVec3 unitDir, float maxDist, PxSpatialLocationCallback callback)
 {
     physxPINVOKE.PxSpatialIndex_sweep(swigCPtr, PxBounds3.getCPtr(aabb), PxVec3.getCPtr(unitDir), maxDist, PxSpatialLocationCallback.getCPtr(callback));
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #17
0
 public virtual void setLinearVelocity(PxVec3 linVel, bool autowake)
 {
     physxPINVOKE.PxRigidBody_setLinearVelocity__SWIG_0(swigCPtr, PxVec3.getCPtr(linVel), autowake);
     if (physxPINVOKE.SWIGPendingException.Pending)
     {
         throw physxPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #18
0
        public PxVec3 rotateInv(PxVec3 input)
        {
            PxVec3 ret = new PxVec3(physxPINVOKE.PxTransform_rotateInv(swigCPtr, PxVec3.getCPtr(input)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #19
0
        public PxVec3 maximum(PxVec3 v)
        {
            PxVec3 ret = new PxVec3(physxPINVOKE.PxVec3_maximum(swigCPtr, PxVec3.getCPtr(v)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #20
0
        public PxVec3 multiply(PxVec3 a)
        {
            PxVec3 ret = new PxVec3(physxPINVOKE.PxVec3_multiply(swigCPtr, PxVec3.getCPtr(a)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #21
0
        public float dot(PxVec3 v)
        {
            float ret = physxPINVOKE.PxVec3_dot(swigCPtr, PxVec3.getCPtr(v));

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #22
0
        public virtual bool raycast(PxVec3 origin, PxVec3 unitDir, float distance, SWIGTYPE_p_physx__PxHitCallbackT_physx__PxRaycastHit_t hitCall)
        {
            bool ret = physxPINVOKE.PxVolumeCache_raycast__SWIG_3(swigCPtr, PxVec3.getCPtr(origin), PxVec3.getCPtr(unitDir), distance, SWIGTYPE_p_physx__PxHitCallbackT_physx__PxRaycastHit_t.getCPtr(hitCall));

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #23
0
        public bool contains(PxVec3 p)
        {
            bool ret = physxPINVOKE.PxPlane_contains(swigCPtr, PxVec3.getCPtr(p));

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #24
0
        public PxVec3 project(PxVec3 p)
        {
            PxVec3 ret = new PxVec3(physxPINVOKE.PxPlane_project(swigCPtr, PxVec3.getCPtr(p)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #25
0
        public static PxBounds3 basisExtent(PxVec3 center, PxMat33 basis, PxVec3 extent)
        {
            PxBounds3 ret = new PxBounds3(physxPINVOKE.PxBounds3_basisExtent(PxVec3.getCPtr(center), PxMat33.getCPtr(basis), PxVec3.getCPtr(extent)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #26
0
        public static PxBounds3 boundsOfPoints(PxVec3 v0, PxVec3 v1)
        {
            PxBounds3 ret = new PxBounds3(physxPINVOKE.PxBounds3_boundsOfPoints(PxVec3.getCPtr(v0), PxVec3.getCPtr(v1)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #27
0
        public float distance(PxVec3 p)
        {
            float ret = physxPINVOKE.PxPlane_distance(swigCPtr, PxVec3.getCPtr(p));

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #28
0
        public static PxMat33 createDiagonal(PxVec3 d)
        {
            PxMat33 ret = new PxMat33(physxPINVOKE.PxMat33_createDiagonal(PxVec3.getCPtr(d)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #29
0
        public PxVec3 transform(PxVec3 other)
        {
            PxVec3 ret = new PxVec3(physxPINVOKE.PxMat33_transform(swigCPtr, PxVec3.getCPtr(other)), true);

            if (physxPINVOKE.SWIGPendingException.Pending)
            {
                throw physxPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #30
0
        public virtual bool raycast(PxVec3 origin, PxVec3 unitDir, float distance, SWIGTYPE_p_physx__PxHitCallbackT_physx__PxRaycastHit_t hitCall, SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t hitFlags, PxQueryFilterData filterData)
        {
            bool ret = physxPINVOKE.PxVolumeCache_raycast__SWIG_1(swigCPtr, PxVec3.getCPtr(origin), PxVec3.getCPtr(unitDir), distance, SWIGTYPE_p_physx__PxHitCallbackT_physx__PxRaycastHit_t.getCPtr(hitCall), SWIGTYPE_p_physx__PxFlagsT_physx__PxHitFlag__Enum_uint16_t_t.getCPtr(hitFlags), PxQueryFilterData.getCPtr(filterData));

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