From: Roger S. <rog...@gm...> - 2005-05-24 12:03:36
|
Matthias, others, I have a couple of questions regarding Trimesh objects. Firstly, can you provide an example using xode to load a trimesh geometry? At the moment, I am using cgkit.objimport to create an _OBJReader object, which is then used to read an obj file and subsequently build a TriMeshData object (using the verts and vfaces variables). I had to comment out the line "self.faces = []" in the g(self, *groups) method within the class definition of _OBJReader to do so. Maybe you could consider making this class public, to allow explicit use, rather than enforcing the generic "load" function in cgkit? Secondly, I have been dropping a trimesh cube onto another trimesh cube, but the colliding objects behave quite strangely - nothing like the behaviour of a GeomBox being dropped onto a GeomPlane, for example. They bounce quite violently off each other! I've tried altering the ERP (currently 2.0), CFM (1E-5) and simulation time-step (0.001), to no avail. Is this a problem with the OPCODE, or something else? By the way, I'm using the Windows binary release of pyode, and have also tried it (compiled from source) on my Powerbook with the same results. Thanks for any help, and thanks for the great project, Roger |