How to use dxGeom::dxGeom?

12 views
Skip to first unread message

Si mon

unread,
May 1, 2024, 9:33:36 AMMay 1
to ode-users
Hello,

in the collision_kernel.cpp is this code:

// dxGeom
dxGeom::dxGeom (dSpaceID _space, int is_placeable)
{
  // setup body vars. invalid type of -1 must be changed by the constructor.
  type = -1;
  gflags = GEOM_DIRTY | GEOM_AABB_BAD | GEOM_ENABLED;
  if (is_placeable) gflags |= GEOM_PLACEABLE;
  data = 0;
  body = 0;
  body_next = 0;
  if (is_placeable) {
final_posr = dAllocPosr();
    dSetZero (final_posr->pos,4);
    dRSetIdentity (final_posr->R);
  }
  else {
    final_posr = 0;
  }
  offset_posr = 0;

  // setup space vars
  next = 0;
  tome = 0;
  parent_space = 0;
  dSetZero (aabb,6);
  category_bits = ~0;
  collide_bits = ~0;

  // put this geom in a space if required
  if (_space) dSpaceAdd (_space,this);
}


how do I call it?
with dxGeom::dxGeom(spaceID, 1); i receive following error:

error: cannot call constructor ‘dxGeom::dxGeom’ directly [-fpermissive]
note: for a function-style cast, remove the redundant ‘::dxGeom’
error: invalid cast to abstract class type ‘dxGeom’
note:   because the following virtual functions are pure within ‘dxGeom’:
struct dxGeom : public dBase {

any advice?
Thank you.

rocco martino

unread,
May 8, 2024, 2:42:30 PMMay 8
to ode-...@googlegroups.com
dxGeom is for internal use. Use dGeom instead: http://ode.org/wiki/index.php/Manual#Geoms

--
You received this message because you are subscribed to the Google Groups "ode-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ode-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ode-users/6b3defca-b914-4596-83a4-21af9faa8a45n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages