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.