Ejemplo n.º 1
0
    public SWIGTYPE_p_btRigidBody localCreateRigidBody(float mass, SWIGTYPE_p_btTransform startTransform, SWIGTYPE_p_btCollisionShape shape)
    {
        IntPtr cPtr = OpenGLSupportPINVOKE.DemoApplication_localCreateRigidBody(swigCPtr, mass, SWIGTYPE_p_btTransform.getCPtr(startTransform), SWIGTYPE_p_btCollisionShape.getCPtr(shape));
        SWIGTYPE_p_btRigidBody ret = (cPtr == IntPtr.Zero) ? null : new SWIGTYPE_p_btRigidBody(cPtr, false);

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