Page 1 of 1

Help me create simple ODE world.

Posted: Wed Nov 08, 2006 8:15 pm
by Magnet
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:

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 );

Posted: Thu Nov 09, 2006 2:08 am
by Eternl Knight
Not to be a pain mate, but that would be best asked on the ODE mailing list/forms/wiki...

--EK

Posted: Sat Nov 11, 2006 7:18 pm
by Magnet
Can you halp me?

Posted: Sat Nov 11, 2006 11:05 pm
by Eternl Knight
Well, the thing you are asking about is something you could get straight out of reading the manual (online version here).

I don't mind helping out with the hard stuff, but stuff that comes straight from the demonstration applications and manuals is something I don't want to answer over and over.

--EK

P.S. The function you are after is:
dGeomID dCreatePlane (dSpaceID space, dReal a, dReal b, dReal c, dReal d);