Class HeightfieldColliderShapeDesc
[ContentSerializer(typeof(DataContentSerializer<HeightfieldColliderShapeDesc>))]
[DataContract("HeightfieldColliderShapeDesc")]
[Display(300, "Heightfield", null)]
public class HeightfieldColliderShapeDesc : IInlineColliderShapeDesc, IAssetColliderShapeDesc, IColliderShapeDesc- Inheritance
- 
      objectHeightfieldColliderShapeDesc
- Implements
Fields
FlipQuadEdges
[DataMember(70)]
public bool FlipQuadEdgesField Value
LocalOffset
[DataMember(100)]
public Vector3 LocalOffsetField Value
LocalRotation
[DataMember(110)]
public Quaternion LocalRotationField Value
Properties
Centering
Add a value to local offset in order to center specific height.
[DataMember(80)]
public HeightfieldCenteringParameters Centering { get; set; }Property Value
Remarks
NOTE: The center height is the middle point of the range, if this is disabled with asymmetrical range.
HeightStickArraySource
The source to initialize the height stick array.
[DataMember(10)]
[Display("Source", null, Expand = ExpandRule.Always)]
public IHeightStickArraySource HeightStickArraySource { get; set; }Property Value
Methods
CreateShape(IServiceRegistry)
public ColliderShape CreateShape(IServiceRegistry services)Parameters
- servicesIServiceRegistry
Returns
GetCenteringOffset()
Get the centering offset that will be added to the local offset of the collider shape.
public float GetCenteringOffset()Returns
- float
- The value that will be added to the local offset of the collider shape in order to center specific height. 
GetCenteringOffset(Vector2, float)
Get the offset required in order to center specific height.
public static float GetCenteringOffset(Vector2 heightRange, float centerHeight)Parameters
Returns
- float
- The value in y axis required in order to center specific height. 
Match(object)
public bool Match(object obj)Parameters
- objobject