Help me create simple ODE world.

Discussion about everything. New games, 3d math, development tips...
Post Reply
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Help me create simple ODE world.

Post 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 );
Eternl Knight
Posts: 313
Joined: Tue Nov 01, 2005 5:01 am

Post by Eternl Knight »

Not to be a pain mate, but that would be best asked on the ODE mailing list/forms/wiki...

--EK
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Post by Magnet »

Can you halp me?
Eternl Knight
Posts: 313
Joined: Tue Nov 01, 2005 5:01 am

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