Table of Contents

Class ShortHeightStickArraySource

Namespace
Stride.Physics
Assembly
Stride.Physics.dll
[DataContract]
[Display("Short", null)]
public class ShortHeightStickArraySource : IHeightStickArraySource, IHeightStickParameters
Inheritance
ShortHeightStickArraySource
Implements

Properties

HeightRange

The range of the height.

[DataMember(20)]
public Vector2 HeightRange { get; set; }

Property Value

Vector2

Remarks

X is min height and Y is max height. (height * HeightScale) should be in this range. Positive and negative heights can not be handle at the same time when the height type is Byte.

HeightScale

Used to calculate the height when the height type is Short or Byte. HeightScale should be 1 when the height type is Float.

public float HeightScale { get; }

Property Value

float

HeightScaleCalculator

Select how to calculate HeightScale.

[DataMember(30)]
[Display("HeightScale", null, Expand = ExpandRule.Always)]
public IHeightScaleCalculator HeightScaleCalculator { get; set; }

Property Value

IHeightScaleCalculator

HeightStickSize

The size of the source.

[DataMember(10)]
[Display("Size", null)]
public Int2 HeightStickSize { get; set; }

Property Value

Int2

Remarks

X is width and Y is length. They should be greater than or equal to 2. For example, this size should be 65 * 65 when you want 64 * 64 size in a scene.

HeightType

The type of the height.

public HeightfieldTypes HeightType { get; }

Property Value

HeightfieldTypes

InitialShort

The value to fill the height stick array.

[DataMember(40)]
[DataMemberRange(-32767, 32767, 1, 10, 0)]
public short InitialShort { get; set; }

Property Value

short

Methods

CopyTo<T>(UnmanagedArray<T>, int)

Copy the source data to the height stick array.

public void CopyTo<T>(UnmanagedArray<T> heightStickArray, int index) where T : struct

Parameters

heightStickArray UnmanagedArray<T>

The destination to copy the data.

index int

The start index of the destination to copy the data.

Type Parameters

T

The data type of the height

IsValid()

public bool IsValid()

Returns

bool

Match(object)

public bool Match(object obj)

Parameters

obj object

Returns

bool