private Geom(Space space, dGeomID ptr) { this.space = space; this.ptr = ptr; this.id = InstanceMap.Add(this); ode.dGeomSetData(ptr, (IntPtr)id); }
public Joint(World world, dJointID ptr, OdeJoint.JointType type) { this.world = world; this.type = type; this.ptr = ptr; id = InstanceMap.Add(this); ode.dJointSetData(ptr, (IntPtr)id); }
public Body(World world) { this.world = world; world.AddBody(this); ptr = ode.dBodyCreate(world.ptr); id = InstanceMap.Add(this); ode.dBodySetData(ptr, (IntPtr)id); }