Ejemplo n.º 1
0
 public virtual void setGravity(SWIGTYPE_p_btVector3 gravity)
 {
     BulletDynamicsPINVOKE.btDiscreteDynamicsWorld_setGravity(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(gravity));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 2
0
 public void addVertex(SWIGTYPE_p_btVector3 w, SWIGTYPE_p_btVector3 p, SWIGTYPE_p_btVector3 q)
 {
     BulletCollisionPINVOKE.btVoronoiSimplexSolver_addVertex(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(w), SWIGTYPE_p_btVector3.getCPtr(p), SWIGTYPE_p_btVector3.getCPtr(q));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public void setAxis(SWIGTYPE_p_btVector3 axisInA)
 {
     BulletDynamicsPINVOKE.btHingeConstraint_setAxis(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(axisInA));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
 public virtual void calculateLocalInertia(float mass, SWIGTYPE_p_btVector3 inertia)
 {
     BulletCollisionPINVOKE.btConeShape_calculateLocalInertia(swigCPtr, mass, SWIGTYPE_p_btVector3.getCPtr(inertia));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 5
0
 public void applyImpulse(Impulse impulse, SWIGTYPE_p_btVector3 rpos)
 {
     BulletSoftBodyPINVOKE.Body_applyImpulse(swigCPtr, Impulse.getCPtr(impulse), SWIGTYPE_p_btVector3.getCPtr(rpos));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 6
0
 public void compute_points(SWIGTYPE_p_btVector3 p1, SWIGTYPE_p_btVector3 p2)
 {
     BulletCollisionPINVOKE.btVoronoiSimplexSolver_compute_points(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(p1), SWIGTYPE_p_btVector3.getCPtr(p2));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 7
0
 public void getLinearLowerLimit(SWIGTYPE_p_btVector3 linearLower)
 {
     BulletDynamicsPINVOKE.btGeneric6DofConstraint_getLinearLowerLimit(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(linearLower));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 8
0
 public void setAngularUpperLimit(SWIGTYPE_p_btVector3 angularUpper)
 {
     BulletDynamicsPINVOKE.btGeneric6DofConstraint_setAngularUpperLimit(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(angularUpper));
     if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 9
0
 public void applyDCImpulse(SWIGTYPE_p_btVector3 impulse)
 {
     BulletSoftBodyPINVOKE.Body_applyDCImpulse(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(impulse));
     if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 10
0
 public virtual void getAabb(SWIGTYPE_p_btTransform t, SWIGTYPE_p_btVector3 aabbMin, SWIGTYPE_p_btVector3 aabbMax)
 {
     BulletCollisionPINVOKE.btBoxShape_getAabb(swigCPtr, SWIGTYPE_p_btTransform.getCPtr(t), SWIGTYPE_p_btVector3.getCPtr(aabbMin), SWIGTYPE_p_btVector3.getCPtr(aabbMax));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 11
0
 public virtual void getPreferredPenetrationDirection(int index, SWIGTYPE_p_btVector3 penetrationVector)
 {
     BulletCollisionPINVOKE.btBoxShape_getPreferredPenetrationDirection(swigCPtr, index, SWIGTYPE_p_btVector3.getCPtr(penetrationVector));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 12
0
 public virtual void setLocalScaling(SWIGTYPE_p_btVector3 scaling)
 {
     BulletCollisionPINVOKE.btConeShape_setLocalScaling(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(scaling));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 13
0
 public virtual void getEdge(int i, SWIGTYPE_p_btVector3 pa, SWIGTYPE_p_btVector3 pb)
 {
     BulletCollisionPINVOKE.btBoxShape_getEdge(swigCPtr, i, SWIGTYPE_p_btVector3.getCPtr(pa), SWIGTYPE_p_btVector3.getCPtr(pb));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 14
0
 public virtual void getVertex(int i, SWIGTYPE_p_btVector3 vtx)
 {
     BulletCollisionPINVOKE.btBoxShape_getVertex(swigCPtr, i, SWIGTYPE_p_btVector3.getCPtr(vtx));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 15
0
 public virtual void getPlane(SWIGTYPE_p_btVector3 planeNormal, SWIGTYPE_p_btVector3 planeSupport, int i)
 {
     BulletCollisionPINVOKE.btBoxShape_getPlane(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(planeNormal), SWIGTYPE_p_btVector3.getCPtr(planeSupport), i);
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 16
0
 public void backup_closest(SWIGTYPE_p_btVector3 v)
 {
     BulletCollisionPINVOKE.btVoronoiSimplexSolver_backup_closest(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(v));
     if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
     {
         throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Ejemplo n.º 17
0
        public int findOrAddVertex(SWIGTYPE_p_btVector3 vertex, bool removeDuplicateVertices)
        {
            int ret = BulletCollisionPINVOKE.btTriangleMesh_findOrAddVertex(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(vertex), removeDuplicateVertices);

            if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 18
0
        public int findLinearSearch(SWIGTYPE_p_btVector3 key)
        {
            int ret = BulletSoftBodyPINVOKE.btAlignedObjectArrayVector3_findLinearSearch(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(key));

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 19
0
        public SWIGTYPE_p_btVector3 expand(SWIGTYPE_p_btVector3 fillValue)
        {
            SWIGTYPE_p_btVector3 ret = new SWIGTYPE_p_btVector3(BulletSoftBodyPINVOKE.btAlignedObjectArrayVector3_expand__SWIG_0(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(fillValue)), false);

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 20
0
        public static float DistanceToShape(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape)
        {
            float ret = BulletSoftBodyPINVOKE.btSparseSdf3_DistanceToShape(SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape));

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 21
0
        public float Evaluate(SWIGTYPE_p_btVector3 x, SWIGTYPE_p_btCollisionShape shape, SWIGTYPE_p_btVector3 normal, float margin)
        {
            float ret = BulletSoftBodyPINVOKE.btSparseSdf3_Evaluate(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(x), SWIGTYPE_p_btCollisionShape.getCPtr(shape), SWIGTYPE_p_btVector3.getCPtr(normal), margin);

            if (BulletSoftBodyPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletSoftBodyPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public SWIGTYPE_p_btWheelInfo addWheel(SWIGTYPE_p_btVector3 connectionPointCS0, SWIGTYPE_p_btVector3 wheelDirectionCS0, SWIGTYPE_p_btVector3 wheelAxleCS, float suspensionRestLength, float wheelRadius, SWIGTYPE_p_btRaycastVehicle__btVehicleTuning tuning, bool isFrontWheel)
        {
            SWIGTYPE_p_btWheelInfo ret = new SWIGTYPE_p_btWheelInfo(BulletDynamicsPINVOKE.btRaycastVehicle_addWheel(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(connectionPointCS0), SWIGTYPE_p_btVector3.getCPtr(wheelDirectionCS0), SWIGTYPE_p_btVector3.getCPtr(wheelAxleCS), suspensionRestLength, wheelRadius, SWIGTYPE_p_btRaycastVehicle__btVehicleTuning.getCPtr(tuning), isFrontWheel), false);

            if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual SWIGTYPE_p_btVector3 localGetSupportingVertexWithoutMargin(SWIGTYPE_p_btVector3 vec)
        {
            SWIGTYPE_p_btVector3 ret = new SWIGTYPE_p_btVector3(BulletCollisionPINVOKE.btPolyhedralConvexShape_localGetSupportingVertexWithoutMargin(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(vec)), true);

            if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 24
0
        public SWIGTYPE_p_btVector3 getVelocityInLocalPoint(SWIGTYPE_p_btVector3 rel_pos)
        {
            SWIGTYPE_p_btVector3 ret = new SWIGTYPE_p_btVector3(BulletDynamicsPINVOKE.btRigidBody_getVelocityInLocalPoint(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(rel_pos)), true);

            if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 25
0
        public float computeAngularImpulseDenominator(SWIGTYPE_p_btVector3 axis)
        {
            float ret = BulletDynamicsPINVOKE.btRigidBody_computeAngularImpulseDenominator(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(axis));

            if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 26
0
        public float solveAngularLimits(float timeStep, SWIGTYPE_p_btVector3 axis, float jacDiagABInv, btRigidBody body0, btRigidBody body1)
        {
            float ret = BulletDynamicsPINVOKE.btRotationalLimitMotor_solveAngularLimits(swigCPtr, timeStep, SWIGTYPE_p_btVector3.getCPtr(axis), jacDiagABInv, btRigidBody.getCPtr(body0), btRigidBody.getCPtr(body1));

            if (BulletDynamicsPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletDynamicsPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual SWIGTYPE_p_btVector3 localGetSupportingVertex(SWIGTYPE_p_btVector3 vec)
        {
            SWIGTYPE_p_btVector3 ret = new SWIGTYPE_p_btVector3(BulletCollisionPINVOKE.btUniformScalingShape_localGetSupportingVertex(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(vec)), true);

            if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public override SWIGTYPE_p_btVector3 localGetSupportingVertexWithoutMargin(SWIGTYPE_p_btVector3 vec)
        {
            SWIGTYPE_p_btVector3 ret = new SWIGTYPE_p_btVector3(BulletCollisionPINVOKE.btCylinderShapeZ_localGetSupportingVertexWithoutMargin(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(vec)), true);

            if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
        public virtual bool isInside(SWIGTYPE_p_btVector3 pt, float tolerance)
        {
            bool ret = BulletCollisionPINVOKE.btBU_Simplex1to4_isInside(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(pt), tolerance);

            if (BulletCollisionPINVOKE.SWIGPendingException.Pending)
            {
                throw BulletCollisionPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Ejemplo n.º 30
0
        public bool inSimplex(SWIGTYPE_p_btVector3 w)
        {
            bool ret = BulletCollisionPINVOKE.btVoronoiSimplexSolver_inSimplex(swigCPtr, SWIGTYPE_p_btVector3.getCPtr(w));

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