[ODE] cant get started!
Katie Bentley
katiebentley222 at hotmail.com
Wed Jul 16 09:56:01 2003
This is a multi-part message in MIME format.
------=_NextPart_000_00F1_01C34BC3.BD404E80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
cheers, have it sorted now, but I cant figure out the mass function =
thing: I have:
struct dMass Mass;=20
const dMass *Mass;
=20
dReal density =3D 2.00;
dReal lx =3D 3;
dReal ly =3D 3;
dReal lz =3D 3;
dMassSetBox (Mass, density,lx, ly, lz);
dBodySetMass (firstBodyID, Mass);
dBodyGetMass(firstBodyID, Mass);
It doesn't work!I want to set the mass of a body but i'm confused about =
the use of the pointers.. I was looking at the help documentation and it =
just says to do this to set and get the mass:
void dBodySetMass (dBodyID, const dMass *mass);
void dBodyGetMass (dBodyID, dMass *mass);
but because const dMass and dMass are different its a redefintion...
help!!
cheers
Kate
----------------------------------------------------------
Katie Bentley
PhD Research Student
Department of Computer Science
University College London
Gower Street
London
W1CE 6BT
Tel: 020 7679 3694
Fax: 020 7387 1397
email: k.bentley@cs.ucl.ac.uk
website: www.cs.ucl.ac.uk/staff/k.bentley=20
----- Original Message -----=20
From: DjArcas=20
To: Katie Bentley ; ode@q12.org=20
Sent: Wednesday, July 16, 2003 5:50 PM
Subject: Re: [ODE] cant get started!
It should look closer to this...
void main()
{
dWorldID lWorldID;
lWorldID =3D dWorldCreate();
dWorldSetGravity (lWorldID , 0.0, 0.0, -9.81);
}
dWorldID is a typedef, not a variable.
----- Original Message -----=20
From: Katie Bentley=20
To: ode@q12.org=20
Sent: Wednesday, July 16, 2003 3:43 PM
Subject: [ODE] cant get started!
hi, can somebody please help me, i've just installed ode 0.03 and =
i've got all the headers included my main file so far looks like this:
void main()
{
dWorldID dWorldCreate();
dWorldSetGravity (dWorldID, 0.0, 0.0, -9.81);
}
its fine with the first line on its own which I cant understand =
anyway, but it doesn't like the dWorldID being used as is in the second =
line. I cant seem to findout what the ID is!=20
any example code would be helpful also!
cheers
Kate
------=_NextPart_000_00F1_01C34BC3.BD404E80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4923.2500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>cheers, have it sorted now, but I cant =
figure out=20
the mass function thing: I have:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>struct dMass Mass; </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>const dMass *Mass;<BR> <BR> =
dReal=20
density =3D 2.00;<BR> dReal lx =3D 3;<BR> dReal ly =3D =
3;<BR> dReal=20
lz =3D 3;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2> dMassSetBox =
(Mass,=20
density,lx, ly, lz);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> dBodySetMass (firstBodyID,=20
Mass);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>dBodyGetMass(firstBodyID, =
Mass);</FONT><FONT=20
color=3D#0000ff><BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>It doesn't work!I want to set the mass =
of a body=20
but i'm confused about the use of the pointers.. I was looking at the =
help=20
documentation and it just says to do this to set and get the =
mass:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT color=3D#0000ff>void dBodySetMass (dBodyID, const dMass =
*mass);<BR>void=20
dBodyGetMass (dBodyID, dMass *mass);<BR></FONT></DIV>
<DIV><FONT color=3D#0000ff>but because const dMass and dMass are =
different its a=20
redefintion...</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>help!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Kate</FONT></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV>
<DIV>----------------------------------------------------------<BR>Katie =
Bentley</DIV>
<DIV> </DIV>
<DIV>PhD Research Student<BR>Department of Computer =
Science<BR>University=20
College London<BR>Gower Street<BR>London<BR>W1CE 6BT</DIV>
<DIV> </DIV>
<DIV>Tel: 020 7679 3694<BR>Fax: 020 7387 1397<BR>email: <A=20
href=3D"mailto:k.bentley@cs.ucl.ac.uk">k.bentley@cs.ucl.ac.uk</A><BR>webs=
ite: <A=20
href=3D"http://www.cs.ucl.ac.uk/staff/k.bentley">www.cs.ucl.ac.uk/staff/k=
.bentley</A>=20
</DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Ddjarcas@hotmail.com =
href=3D"mailto:djarcas@hotmail.com">DjArcas</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Dkatiebentley222@hotmail.com=20
href=3D"mailto:katiebentley222@hotmail.com">Katie Bentley</A> ; <A=20
title=3Dode@q12.org href=3D"mailto:ode@q12.org">ode@q12.org</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, July 16, 2003 =
5:50=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [ODE] cant get=20
started!</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>It should look closer to =
this...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2>void main()<BR>{</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> dWorldID=20
lWorldID;<BR> lWorldID =3D =
dWorldCreate();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> dWorldSetGravity =
(lWorldID ,=20
0.0, 0.0, -9.81);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>dWorldID is a typedef, not a=20
variable.</DIV></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dkatiebentley222@hotmail.com=20
href=3D"mailto:katiebentley222@hotmail.com">Katie Bentley</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dode@q12.org=20
href=3D"mailto:ode@q12.org">ode@q12.org</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, July 16, =
2003 3:43=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [ODE] cant get =
started!</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>hi, can somebody please help =
me, i've=20
just installed ode 0.03 and i've got all the headers included my =
main file=20
so far looks like this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>void =
main()<BR>{<BR> =20
dWorldID dWorldCreate();</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
dWorldSetGravity=20
(dWorldID, 0.0, 0.0, -9.81);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>}<BR></DIV>
<DIV></FONT><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>its fine with the first line on its =
own which I=20
cant understand anyway, but it doesn't like the dWorldID being used =
as is in=20
the second line. I cant seem to findout what the ID is! =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>any example code would be helpful=20
also!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Kate</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial=20
size=3D2></FONT> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00F1_01C34BC3.BD404E80--