[ODE] CS ODE plugin problem

osman@fuse.net osman at fuse.net
Mon Feb 24 18:39:01 2003


Hi,
From the last suggestion I looked into the CS ODE plugin source and found the following code. Could that cause "geom must be placeable in dGeomSetBody()" ODE internal error?? Were planes placeable at one time??

TIA
Osman

bool csODERigidBody::AttachColliderPlane (const csPlane3& plane,
  float friction, float density, float elasticity)
{
  dSpaceID space = dynsys->GetSpaceID();
  dGeomID id = dCreatePlane (space, plane.A(), -plane.B(), plane.C(), plane.D());

  dGeomSetBody (id, bodyID);  <<----------------- here??? 

  float *f = new float[2];
  f[0] = friction;
  f[1] = elasticity;
  dGeomSetData (id, (void*)f);

  return true;
}