HeightfieldColliderShape Class
Namespace: Stride.Physics
Assembly: Stride.Physics.dll
public class HeightfieldColliderShape : ColliderShape, IDisposable
| Name |
Description |
| Constructors
|
|
|
HeightfieldColliderShape(Int32, Int32, UnmanagedArray<Byte>, Single, Single, Single, Boolean) |
|
|
|
HeightfieldColliderShape(Int32, Int32, UnmanagedArray<Int16>, Single, Single, Single, Boolean) |
|
|
|
HeightfieldColliderShape(Int32, Int32, UnmanagedArray<Single>, Single, Single, Single, Boolean) |
|
| Fields
|
|
|
MinimumHeightStickLength |
|
|
|
MinimumHeightStickWidth |
|
| Properties
|
|
|
ByteArray |
|
|
|
FloatArray |
|
|
|
HeightScale |
|
|
|
HeightStickLength |
|
|
|
HeightStickWidth |
|
|
|
HeightType |
|
|
|
MaxHeight |
|
|
|
MinHeight |
|
|
|
ShortArray |
|
|
|
UseDiamondSubdivision |
|
|
|
UseZigzagSubdivision |
|
| Methods
|
|
|
CreateUpdatableDebugPrimitive(GraphicsDevice) |
|
|
|
Dispose() |
|
|
|
Finalize() |
|
|
|
LockToReadAndWriteHeights() |
|
|
|
LockToReadHeights() |
|
|
|
UpdateDebugPrimitive(CommandList, IDebugPrimitive) |
|
|
Improve this Doc
View Source
Constructors
HeightfieldColliderShape(Int32, Int32, UnmanagedArray<Byte>, Single, Single, Single, Boolean)
public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray<byte> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges)
Parameters
| Type |
Name |
Description |
| System.Int32 |
heightStickWidth |
|
| System.Int32 |
heightStickLength |
|
| UnmanagedArray<System.Byte> |
dynamicFieldData |
|
| System.Single |
heightScale |
|
| System.Single |
minHeight |
|
| System.Single |
maxHeight |
|
| System.Boolean |
flipQuadEdges |
|
HeightfieldColliderShape(Int32, Int32, UnmanagedArray<Int16>, Single, Single, Single, Boolean)
public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray<short> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges)
Parameters
| Type |
Name |
Description |
| System.Int32 |
heightStickWidth |
|
| System.Int32 |
heightStickLength |
|
| UnmanagedArray<System.Int16> |
dynamicFieldData |
|
| System.Single |
heightScale |
|
| System.Single |
minHeight |
|
| System.Single |
maxHeight |
|
| System.Boolean |
flipQuadEdges |
|
HeightfieldColliderShape(Int32, Int32, UnmanagedArray<Single>, Single, Single, Single, Boolean)
public HeightfieldColliderShape(int heightStickWidth, int heightStickLength, UnmanagedArray<float> dynamicFieldData, float heightScale, float minHeight, float maxHeight, bool flipQuadEdges)
Parameters
| Type |
Name |
Description |
| System.Int32 |
heightStickWidth |
|
| System.Int32 |
heightStickLength |
|
| UnmanagedArray<System.Single> |
dynamicFieldData |
|
| System.Single |
heightScale |
|
| System.Single |
minHeight |
|
| System.Single |
maxHeight |
|
| System.Boolean |
flipQuadEdges |
|
|
Improve this Doc
View Source
Fields
MinimumHeightStickLength
public static readonly int MinimumHeightStickLength
Field Value
| Type |
Description |
| System.Int32 |
|
MinimumHeightStickWidth
public static readonly int MinimumHeightStickWidth
Field Value
| Type |
Description |
| System.Int32 |
|
|
Improve this Doc
View Source
Properties
ByteArray
public UnmanagedArray<byte> ByteArray { get; }
Property Value
FloatArray
public UnmanagedArray<float> FloatArray { get; }
Property Value
HeightScale
public float HeightScale { get; }
Property Value
| Type |
Description |
| System.Single |
|
HeightStickLength
public int HeightStickLength { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
HeightStickWidth
public int HeightStickWidth { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
HeightType
public HeightfieldTypes HeightType { get; }
Property Value
MaxHeight
public float MaxHeight { get; }
Property Value
| Type |
Description |
| System.Single |
|
MinHeight
public float MinHeight { get; }
Property Value
| Type |
Description |
| System.Single |
|
ShortArray
public UnmanagedArray<short> ShortArray { get; }
Property Value
UseDiamondSubdivision
public bool UseDiamondSubdivision { set; }
Property Value
| Type |
Description |
| System.Boolean |
|
UseZigzagSubdivision
public bool UseZigzagSubdivision { set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Methods
CreateUpdatableDebugPrimitive(GraphicsDevice)
public override IDebugPrimitive CreateUpdatableDebugPrimitive(GraphicsDevice graphicsDevice)
Parameters
Returns
Overrides
Dispose()
public override void Dispose()
Overrides
Finalize()
protected void Finalize()
LockToReadAndWriteHeights()
public HeightfieldColliderShape.HeightArrayLock LockToReadAndWriteHeights()
Returns
LockToReadHeights()
public HeightfieldColliderShape.HeightArrayLock LockToReadHeights()
Returns
UpdateDebugPrimitive(CommandList, IDebugPrimitive)
public override void UpdateDebugPrimitive(CommandList commandList, IDebugPrimitive debugPrimitive)
Parameters
Overrides
Extension Methods