Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Heightfield"/> class on the
 /// given space and with the specified data.
 /// </summary>
 /// <param name="space">The space that is to contain the geom.</param>
 /// <param name="data">The heightfield data object.</param>
 /// <param name="placeable">
 /// <b>true</b> if this geom can be transformed in the world using the
 /// position and rotation functions; otherwise, the geom will have a fixed
 /// orientation where the global y-axis will represent height.
 /// </param>
 public Heightfield(Space space, HeightfieldData data, bool placeable)
     : base(NativeMethods.dCreateHeightfield(space != null ? space.Id : dSpaceID.Null, data.Id, placeable ? 1 : 0))
 {
     this.data = data;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Heightfield"/> class with the
 /// specified data.
 /// </summary>
 /// <param name="data">The heightfield data object.</param>
 /// <param name="placeable">
 /// <b>true</b> if this geom can be transformed in the world using the
 /// position and rotation functions; otherwise, the geom will have a fixed
 /// orientation where the global y-axis will represent height.
 /// </param>
 public Heightfield(HeightfieldData data, bool placeable)
     : this(null, data, placeable)
 {
 }