예제 #1
0
 public RigidBody()
 {
     this.clampAxis         = new List <Axis>();
     this.material          = new Material();
     this.rigidBody         = new JRigidBody(new SphereShape(1.0f), this.material);
     this.AffectedByGravity = false;
 }
 public HeightMapTerrain(Project2Game game, Vector3 position, Texture2D heightMap, float xScale, float zScale) :
     base(game,position,xScale,zScale)
 {
     this.HeightMap = heightMap;
     this.TerrainData = GenerateTerrainData();
     this.GenerateGeometry();
     this.CreateBuffers();
     this.PhysicsDescription = GeneratePhysicsDescription();
     game.physics.AddBody(PhysicsDescription);
 }
예제 #3
0
 public PhysicsBody(Shape shape)
 {
     this.Body = new Jitter.Dynamics.RigidBody(shape);
 }