[ODE] This is corect, I hope?

Ivan Bolcina ivan.bolcina at volja.net
Tue Oct 22 11:50:02 2002


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C27A0C.73C51FD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi.=20
Is this function, which converts ODE vector to DirectX's, correct? It =
appears so, exept for the mass to body assignment.

bye,ivan


D3DXVECTOR3 convertVector(const dReal *in)
{
D3DXVECTOR3 out;
out.x=3Din[0];
out.y=3Din[1];
out.z=3Din[2];
return out;
}

------=_NextPart_000_000F_01C27A0C.73C51FD0
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 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is this function, which converts ODE =
vector to=20
DirectX's, correct? It appears so, exept for the mass to body=20
assignment.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>bye,ivan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>D3DXVECTOR3 convertVector(<FONT color=3D#0000ff =
size=3D2>const</FONT><FONT=20
size=3D2> dReal *in)<BR></FONT><FONT size=3D2>{<BR></FONT><FONT =
size=3D2>D3DXVECTOR3=20
out;<BR>out.x=3Din[0];<BR>out.y=3Din[1];<BR>out.z=3Din[2];<BR></FONT><FON=
T=20
color=3D#0000ff size=3D2>return</FONT><FONT size=3D2>=20
out;<BR>}</FONT></DIV></BODY></HTML>

------=_NextPart_000_000F_01C27A0C.73C51FD0--