Beispiel #1
0
 private Geom(Space space, dGeomID ptr)
 {
     this.space = space;
     this.ptr   = ptr;
     this.id    = InstanceMap.Add(this);
     ode.dGeomSetData(ptr, (IntPtr)id);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 public Body(World world)
 {
     this.world = world;
     world.AddBody(this);
     ptr = ode.dBodyCreate(world.ptr);
     id  = InstanceMap.Add(this);
     ode.dBodySetData(ptr, (IntPtr)id);
 }