Table of Contents

Class HeightfieldColliderShape

Namespace
Stride.Physics
Assembly
Stride.Physics.dll
public class HeightfieldColliderShape : ColliderShape, IDisposable
Inheritance
HeightfieldColliderShape
Implements
Derived
Inherited Members
Extension Methods

Constructors

HeightfieldColliderShape(int, int, UnmanagedArray<byte>, float, float, float, bool)

public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray<byte> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges)

Parameters

heightStickWidth int
heightStickLength int
dynamicFieldData UnmanagedArray<byte>
heightScale float
minHeight float
maxHeight float
flipQuadEdges bool

HeightfieldColliderShape(int, int, UnmanagedArray<short>, float, float, float, bool)

public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray<short> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges)

Parameters

heightStickWidth int
heightStickLength int
dynamicFieldData UnmanagedArray<short>
heightScale float
minHeight float
maxHeight float
flipQuadEdges bool

HeightfieldColliderShape(int, int, UnmanagedArray<float>, float, float, float, bool)

public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray<float> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges)

Parameters

heightStickWidth int
heightStickLength int
dynamicFieldData UnmanagedArray<float>
heightScale float
minHeight float
maxHeight float
flipQuadEdges bool

Fields

MinimumHeightStickLength

public static readonly int MinimumHeightStickLength

Field Value

int

MinimumHeightStickWidth

public static readonly int MinimumHeightStickWidth

Field Value

int

Properties

ByteArray

public UnmanagedArray<byte> ByteArray { get; }

Property Value

UnmanagedArray<byte>

FloatArray

public UnmanagedArray<float> FloatArray { get; }

Property Value

UnmanagedArray<float>

HeightScale

public float HeightScale { get; }

Property Value

float

HeightStickLength

public int HeightStickLength { get; }

Property Value

int

HeightStickWidth

public int HeightStickWidth { get; }

Property Value

int

HeightType

public HeightfieldTypes HeightType { get; }

Property Value

HeightfieldTypes

MaxHeight

public float MaxHeight { get; }

Property Value

float

MinHeight

public float MinHeight { get; }

Property Value

float

ShortArray

public UnmanagedArray<short> ShortArray { get; }

Property Value

UnmanagedArray<short>

UseDiamondSubdivision

public bool UseDiamondSubdivision { set; }

Property Value

bool

UseZigzagSubdivision

public bool UseZigzagSubdivision { set; }

Property Value

bool

Methods

CreateUpdatableDebugPrimitive(GraphicsDevice)

public override IDebugPrimitive CreateUpdatableDebugPrimitive(GraphicsDevice graphicsDevice)

Parameters

graphicsDevice GraphicsDevice

Returns

IDebugPrimitive

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

~HeightfieldColliderShape()

protected ~HeightfieldColliderShape()

LockToReadAndWriteHeights()

public HeightfieldColliderShape.HeightArrayLock LockToReadAndWriteHeights()

Returns

HeightfieldColliderShape.HeightArrayLock

LockToReadHeights()

public HeightfieldColliderShape.HeightArrayLock LockToReadHeights()

Returns

HeightfieldColliderShape.HeightArrayLock

UpdateDebugPrimitive(CommandList, IDebugPrimitive)

public override void UpdateDebugPrimitive(CommandList commandList, IDebugPrimitive debugPrimitive)

Parameters

commandList CommandList
debugPrimitive IDebugPrimitive