[ODE] 2d Physics

DjArcas djarcas at hotmail.com
Sat May 17 10:12:01 2003


This is a multi-part message in MIME format.

------=_NextPart_000_00F6_01C31CA0.562D2490
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi there,
    I'm using ODE to give me collision and physics for a 2d set of =
games. I've got it all hooked up and working, so far, using this =
methodology:

I have 2 'glass sheets', which are frictionless, and a fraction over 0.5 =
units apart. These are used to constrain movement along the Z direction.

But I'm getting odd...artifacts. For instance, when I join 2 objects =
together during the simulation, they are fine for a moment, then wobble, =
and then teleport in what appears to be a single frame to the top left =
of the screen.

So, my question is - is there a better way to simulate 2d physics using =
ODE? I thought of resetting every object's Z coordinates and Y rotation =
to 0 every frame, but I'm loathe to actually fiddle with the simulation =
- unless I have to.

Feedback and thoughts welcome!

Adam

http://www.projectorgames.com
------=_NextPart_000_00F6_01C31CA0.562D2490
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.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi there,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I'm using ODE to =
give me=20
collision and physics for a 2d set of games. I've got it all hooked up =
and=20
working, so far, using this methodology:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have 2 'glass sheets', which are =
frictionless,=20
and a fraction over 0.5 units apart. These are used to constrain =
movement along=20
the Z direction.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But I'm getting odd...artifacts. For =
instance, when=20
I join 2 objects together during the simulation, they are fine for a =
moment,=20
then wobble, and then teleport in what appears to be a single frame to =
the top=20
left of the screen.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>So, my question is - is there a better =
way to=20
simulate 2d physics using ODE? I thought of resetting every object's Z=20
coordinates and Y rotation to 0 every frame, but I'm loathe to actually =
fiddle=20
with the simulation - unless I have to.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Feedback and thoughts =
welcome!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Adam</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>http://www.projectorgames.com</FONT></DIV></BODY></HTML>

------=_NextPart_000_00F6_01C31CA0.562D2490--