Beispiel #1
0
        public override void Init()
        {
            terrain = new TgcSimpleTerrain();
            var position = TGCVector3.Empty;

            terrain.loadHeightmap(MediaDir + "Heighmaps\\" + "TerrainTexture2.jpg", 20, 0.5f, position);
            terrain.loadTexture(MediaDir + "Heighmaps\\" + "grass.jpg");

            physicsExample = new TriangleSpherePhysics();
            physicsExample.SetTriangleDataVB(terrain.getData());
            physicsExample.Init(MediaDir);

            Camara = new TgcRotationalCamera(new TGCVector3(0, 20, 0), 1000, Input);
        }