[ODE] cant get started!

Katie Bentley katiebentley222 at hotmail.com
Wed Jul 16 10:09:02 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0100_01C34BC5.82612170
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

where abouts?

I tried:

 >const dMass *mass;
>
>dMassSetBox (mass, density,lx, ly, lz);
>
>dBodySetMass (firstBodyID, mass);


and it says it cant convert from const struct dMass * to struct dMass * =
in the dMassSetBox function.  But its a redefinition if I declare it as =
dMass *mass too.... if I put in &mass in the setBox function then it =
says cant convert from const struct dMass ** to struct dMass *

help! :)
this doesn't work...
 original documentation code:
void dBodySetMass (dBodyID, const dMass *mass);
void dBodyGetMass (dBodyID, dMass *mass);

------=_NextPart_000_0100_01C34BC5.82612170
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>where abouts?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I tried:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&gt;const dMass =
*mass;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt;dMassSetBox (mass, density,lx, ly,=20
lz);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&gt;dBodySetMass (firstBodyID, =
mass);<BR></DIV>
<DIV></FONT><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>and it says it cant convert from const struct =
dMass *=20
to struct dMass * in the dMassSetBox function.&nbsp; But its a =
redefinition if I=20
declare it as dMass *mass too.... if I put in &amp;mass in the setBox =
function=20
then it says cant convert from const struct dMass ** to struct dMass=20
*</FONT></DIV>
<DIV><FONT color=3D#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff>help! :)</FONT></DIV>
<DIV><FONT color=3D#0000ff>this doesn't work...</FONT></DIV>
<DIV><FONT color=3D#0000ff>&nbsp;original documentation =
code:</FONT></DIV>
<DIV><FONT color=3D#0000ff>void dBodySetMass (dBodyID, const dMass =
*mass);<BR>void=20
dBodyGetMass (dBodyID, dMass *mass);<BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_0100_01C34BC5.82612170--