Help me create simple ODE world.
Posted: Wed Nov 08, 2006 8:15 pm
I study working with ODE.
Please help me create simple world.
I need to create world with one sphere and one plaine for realize jumping ball on plain.
I am create sphere in world but I not undestend how to create fixed plain.
My code:
Please help me create simple world.
I need to create world with one sphere and one plaine for realize jumping ball on plain.
I am create sphere in world but I not undestend how to create fixed plain.
My code:
Code: Select all
myWorld_id = dWorldCreate();
mySphere_id = dBodyCreate( myWorld_id );
dWorldSetGravity( myWorld_id, 0, 0, -3.77 );
dBodySetPosition( mySphere_id, 0, 0, 100 );
dMassSetSphere( &sphereMass, 1, 2 );
dBodySetMass( mySphere_id, &sphereMass );