[ODE] New Composite Geom

Vadim Macagon vadim_mcagon at hotmail.com
Thu May 22 00:22:02 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C32097.92BB6110
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

Hyas,

I put together a dCompositeGeom since I'm planning on representing the
collision structure for characters in our game using a composition of
primitive shapes (and attaching that to a single body). I know there is a
geom transform group thing around, but I couldn't quite figure out how it
worked, and whether it did what I wanted :). Anyway I'm making
dCompositeGeom available in case anyone wants to put it to some good use.

Installation is pretty simple, just put the header file into your
ode/include/ode dir and the source file into your ode/ode/src dir. If you're
using MSVC you'll need to add the following lines to
/ode/config/msvcdefs.def

dCreateCompositeGeom
dCompositeGeomAdd
dCompositeGeomRemove
dCompositeGeomGet
dCompositeGeomGetNumGeoms
dCompositeGeomSetRelPosition
dCompositeGeomGetRelPosition
dCompositeGeomSetRelRotation
dCompositeGeomGetRelRotation
dCompositeGeomContains

If you're building using the command line you'll need to add the source file
to ODE_SRC, or something. And if you're using the MSVC projects/solution to
build add the two files to the ode project.

Then rebuild ODE and you should be set to go.

Also I've integrated most of ODE with The Nebula Device
(http://nebuladevice.sourceforge.net/cgi-bin/twiki/view/Nebula/OdePhysics),
in case anyone is interested.


Cheers,

Vadim.

------=_NextPart_000_0005_01C32097.92BB6110
Content-Type: application/x-zip-compressed;
	name="compositegeom.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="compositegeom.zip"

UEsDBBQAAAAIAKICsS4n23NjfgkAAJUvAAARAAAAY29tcG9zaXRlZ2VvbS5jcHDtWltv28YSfg+Q
/7DwAVxSpm3JbvOi2KhiN4bRODFop8A5geGzIlcSHYkkSMq2kqa/vTOzF94l15ckLSrAuuzOzs7O
fHPZobe3Nx/19fzZ9jZjlmeznW53l/3G/WDGTrjHx1GIc6s5/JXX82f/CUJvOvcFexn5Yhv+tib7
1VEvmsVRGmRiLKJZeX7Ni6bTIA2i8PKjSEIx3ZqsFad5kvAFjT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