地面との衝突 衝突後にエラー

VC2008でODEインストール

http://www10.atwiki.jp/bambooflow/pages/212.htmlでは、

<ビルドする際の、INCREMENTAL error×3について )>
Visual Studio 2008 でオプションをビルド、/INCREMENTAL を使用して、Visual C++ プロジェクトをリンクすると、エラー メッセージ:"LNK1000: IncrBuildImage 中に内部エラー"

http://support.microsoft.com/kb/948127

パッチ VS90-KB948127.exeをあてること


http://www10.atwiki.jp/bambooflow/pages/57.htmlソースコードでは、初期化 dInitODE();が抜けている。これがないとエラー発生



転がり摩擦ソース

/***********************************************************
* Hajime no Ippo --- file : hjime.cpp
***********************************************************/
#include
#include

#define MAX_CONTACTS 4
static dWorldID world;
static dSpaceID space;
static dJointGroupID contactgroup;

static dBodyID b_sphere;
static dGeomID g_sphere;
static dGeomID g_fixed;
static dReal radius = 0.5;
static dReal f_box_sizes[3] = { 2.0, 2.0, 1.0 };

#ifdef dDOUBLE
#define dsDrawSphere dsDrawSphereD
#define dsDrawBox dsDrawBoxD
#endif

static void nearCallback( void *data, dGeomID o1, dGeomID o2 )
{
dBodyID b1 = dGeomGetBody( o1 );
dBodyID b2 = dGeomGetBody( o2 );

if ( b1 && b2 && dAreConnectedExcluding( b1, b2, dJointTypeContact ) )
return;

dContact contact[MAX_CONTACTS];
for ( int i=0; i 0 )
{
for ( int i=0; i