///<summary> /// Constructs a new Terrain. ///</summary> ///<param name="shape">Shape to use for the terrain.</param> ///<param name="worldTransform">Transform to use for the terrain.</param> public Terrain(TerrainShape shape, AffineTransform worldTransform) { WorldTransform = worldTransform; Shape = shape; Events = new ContactEventManager<Terrain>(); }
///<summary> /// Constructs a new Terrain. ///</summary> ///<param name="shape">Shape to use for the terrain.</param> ///<param name="worldTransform">Transform to use for the terrain.</param> public Terrain(TerrainShape shape, AffineTransform worldTransform) { this.worldTransform = worldTransform; Shape = shape; collisionRules.group = CollisionRules.DefaultKinematicCollisionGroup; material = new Material(); materialChangedDelegate = OnMaterialChanged; material.MaterialChanged += materialChangedDelegate; events = new ContactEventManager<Terrain>(this); }