Class HeightfieldColliderShape
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
intheightStickLength
intdynamicFieldData
UnmanagedArray<byte>heightScale
floatminHeight
floatmaxHeight
floatflipQuadEdges
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
intheightStickLength
intdynamicFieldData
UnmanagedArray<short>heightScale
floatminHeight
floatmaxHeight
floatflipQuadEdges
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
intheightStickLength
intdynamicFieldData
UnmanagedArray<float>heightScale
floatminHeight
floatmaxHeight
floatflipQuadEdges
bool
Fields
MinimumHeightStickLength
public static readonly int MinimumHeightStickLength
Field Value
MinimumHeightStickWidth
public static readonly int MinimumHeightStickWidth
Field Value
Properties
ByteArray
public UnmanagedArray<byte> ByteArray { get; }
Property Value
FloatArray
public UnmanagedArray<float> FloatArray { get; }
Property Value
HeightScale
public float HeightScale { get; }
Property Value
HeightStickLength
public int HeightStickLength { get; }
Property Value
HeightStickWidth
public int HeightStickWidth { get; }
Property Value
HeightType
public HeightfieldTypes HeightType { get; }
Property Value
MaxHeight
public float MaxHeight { get; }
Property Value
MinHeight
public float MinHeight { get; }
Property Value
ShortArray
public UnmanagedArray<short> ShortArray { get; }
Property Value
UseDiamondSubdivision
public bool UseDiamondSubdivision { set; }
Property Value
UseZigzagSubdivision
public bool UseZigzagSubdivision { set; }
Property Value
Methods
CreateUpdatableDebugPrimitive(GraphicsDevice)
public override IDebugPrimitive CreateUpdatableDebugPrimitive(GraphicsDevice graphicsDevice)
Parameters
graphicsDevice
GraphicsDevice
Returns
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
LockToReadHeights()
public HeightfieldColliderShape.HeightArrayLock LockToReadHeights()
Returns
UpdateDebugPrimitive(CommandList, IDebugPrimitive)
public override void UpdateDebugPrimitive(CommandList commandList, IDebugPrimitive debugPrimitive)
Parameters
commandList
CommandListdebugPrimitive
IDebugPrimitive