Ejemplo n.º 1
0
 public PhysicsScene GetScene()
 {
     if (_mScene == null)
     {
         _mScene = new OdeScene();
     }
     return(_mScene);
 }
Ejemplo n.º 2
0
 public OdeCharacter(OdeScene parent_scene, PhysicsVector pos)
 {
     _velocity = new PhysicsVector();
     _position = pos;
     _acceleration = new PhysicsVector();
     d.MassSetCapsule(out capsule_mass, 5.0f, 3, 0.5f, 2f);
     capsule_geom = d.CreateCapsule(OdeScene.space, 0.5f, 2f);
     this.BoundingCapsule = d.BodyCreate(OdeScene.world);
     d.BodySetMass(BoundingCapsule, ref capsule_mass);
     d.BodySetPosition(BoundingCapsule, pos.X, pos.Y, pos.Z);
     d.GeomSetBody(capsule_geom, BoundingCapsule);
 }
Ejemplo n.º 3
0
 public OdeCharacter(OdeScene parent_scene, PhysicsVector pos)
 {
     _velocity     = new PhysicsVector();
     _position     = pos;
     _acceleration = new PhysicsVector();
     d.MassSetCapsule(out capsule_mass, 5.0f, 3, 0.5f, 2f);
     capsule_geom         = d.CreateCapsule(OdeScene.space, 0.5f, 2f);
     this.BoundingCapsule = d.BodyCreate(OdeScene.world);
     d.BodySetMass(BoundingCapsule, ref capsule_mass);
     d.BodySetPosition(BoundingCapsule, pos.X, pos.Y, pos.Z);
     d.GeomSetBody(capsule_geom, BoundingCapsule);
 }
Ejemplo n.º 4
0
 public PhysicsScene GetScene()
 {
     if (_mScene == null)
     {
         _mScene = new OdeScene();
     }
     return (_mScene);
 }