public PhysicsScene GetScene() { if (_mScene == null) { _mScene = new OdeScene(); } return(_mScene); }
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); }
public PhysicsScene GetScene() { if (_mScene == null) { _mScene = new OdeScene(); } return (_mScene); }