Dunno, I read on another post someone else did it and it worked, so I tried, then I did the same thing to a few others to get this
// Dark GDK - The Game Creators - www.thegamecreators.com
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
#include "DarkPhysics.h"
void DarkGDK ( void )
{
dbSetDisplayMode( 800, 600, 32 );
dbSetWindowPosition ( GetSystemMetrics ( SM_CXSCREEN ) / 2 - ( 800 / 2 ), GetSystemMetrics ( SM_CYSCREEN ) / 2 - ( 600 / 2 ) );
// shows how to use multiple cloth objects in a scene
// set up the project
void dbAutoCamOff();
void dbSyncOn();
dbSyncRate( 60 );
dbColorBackdrop( 0 );
dbSetAmbientLight( 30 );
dbPositionCamera( 22, 15, 20 );
dbRotateCamera( 30, 210, 0 );
void dbPhyStart ( );
// load images for use later on
dbLoadImage( "media\\rug512.bmp", 1);
dbLoadImage( "media\\banner_horse.dds", 2 );
//create background sphere
dbLoadImage( "media\\stripe5.png", 8 );
dbMakeObjectSphere( 800, 400, 48, 48 );
dbTextureObject( 800, 8 );
dbScaleObjectTexture( 800, 6, 6 );
dbSetObjectCull( 800, 0 );
// cloth 1
dbMakeObjectBox( 2, 10, 1, 1 );
dbPositionObject( 2, 1, 6.5, 0 );
dbPhyMakeRigidBodyStaticBox ( 2 );
dbPhyMakeCloth ( 3 );
dbPhySetClothDimensions ( 3, 8, 7, 0.2 );
dbPhySetClothPosition ( 3, -3, 7.1, 0 );
dbPhySetClothTearing ( 3, 1 );
dbPhyBuildCloth ( 3 );
dbPhyAttachClothToShape ( 3, 2, 1 );
dbTextureObject( 3, 2 );
// cloth 2
dbMakeObjectBox( 4, 5, 2, 5 );
dbPositionObject( 4, 10, 2.5, 0 );
dbPhyMakeRigidBodyStaticBox ( 4 );
dbPhyMakeCloth ( 5 );
dbPhySetClothDimensions ( 5, 8, 8, 0.2 );
dbPhySetClothPosition ( 5, 6, 9, -4.5 );
dbPhySetClothDamping ( 5, 1 );
dbPhyBuildCloth ( 5 );
dbPhyAttachClothToShape ( 5, 4, 1 );
dbTextureObject( 5, 1 );
// cloth 3
dbMakeObjectBox( 6, 1, 10, 1 );
dbPositionObject( 6, 15, 5, 0 );
dbPhyMakeRigidBodyStaticBox ( 6 );
dbPhyMakeCloth ( 7 );
dbPhySetClothDimensions ( 7, 4, 4, 0.2 );
dbPhySetClothPosition ( 7, 15.1, 10, 0 );
dbPhySetClothGravity ( 7, 1 );
dbPhySetClothDamping ( 7, 1 );
dbPhySetClothRotation ( 7, 90, 0, 0 );
dbPhySetClothExternalAcceleration ( 7, 35, 0, 10 );
dbPhyBuildCloth ( 7 );
dbPhyAttachClothToShape ( 7, 6, 1 );
dbTextureObject( 7, 2 );
// cloth 4
dbMakeObjectBox( 8, 2, 2, 2 );
dbPositionObject( 8, 22, 10, 0 );
dbPhyMakeRigidBodyStaticBox ( 8 );
dbMakeObjectSphere( 9, 1 );
dbPositionObject( 9, 22, 9, 6.5 );
dbPhyMakeRigidBodyDynamicSphere ( 9 );
dbPhyMakeCloth ( 10 );
dbPhySetClothDimensions ( 10, 1.6, 7, 0.4 );
dbPhySetClothPosition ( 10, 21, 9, 0 );
dbPhyBuildCloth ( 10 );
dbPhyAttachClothToAllShapes ( 10, 1 );
dbTextureObject( 10, 1 );
// cloth 5
dbMakeObjectBox( 11, 1, 1, 5 );
dbPositionObject( 11, -8, 3, 0 );
dbPhyMakeRigidBodyStaticBox ( 11 );
dbMakeObjectBox( 12, 1, 1, 5 );
dbPositionObject( 12, -16, 3, 0 );
dbPhyMakeRigidBodyStaticBox ( 12 );
dbPhyMakeCloth ( 13 );
dbPhySetClothDimensions ( 13, 8, 4, 0.5 );
dbPhySetClothPosition ( 13, -16, 3, -2.5 );
dbPhyBuildCloth ( 13 );
dbPhyAttachClothToAllShapes ( 13, 0 );
dbTextureObject( 13, 1 );
// display Dark Physics logo
dbLoadImage( "media\\logo.png", 100000 );
dbSprite( 1, 0, 600 - 60, 100000 );
// main loop
while ( 1 )
{
if ( dbEscapeKey ( ) )
break;
// update simulation and screen
void dbPhyUpdate ( );
void dbSync();
}
}
Which made the code go a little further untill it stopped at this:
dbPhyAttachClothToShape ( 3, 2, 1 );
I'm just trying anything now