Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    HeightfieldColliderShape Class

    Namespace: Stride.Physics
    Assembly: Stride.Physics.dll
    System.Object → ColliderShape → HeightfieldColliderShape
    Derived from HeightfieldColliderShape: HeightfieldColliderShape

    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
    Type Description
    UnmanagedArray<System.Byte>

    FloatArray

    public UnmanagedArray<float> FloatArray { get; }
    Property Value
    Type Description
    UnmanagedArray<System.Single>

    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
    Type Description
    HeightfieldTypes

    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
    Type Description
    UnmanagedArray<System.Int16>

    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
    Type Name Description
    GraphicsDevice graphicsDevice
    Returns
    Type Description
    IDebugPrimitive
    Overrides
    ColliderShape.CreateUpdatableDebugPrimitive(GraphicsDevice)

    Dispose()

    public override void Dispose()
    Overrides
    ColliderShape.Dispose()

    Finalize()

    protected void Finalize()

    LockToReadAndWriteHeights()

    public HeightfieldColliderShape.HeightArrayLock LockToReadAndWriteHeights()
    Returns
    Type Description
    HeightfieldColliderShape.HeightArrayLock

    LockToReadHeights()

    public HeightfieldColliderShape.HeightArrayLock LockToReadHeights()
    Returns
    Type Description
    HeightfieldColliderShape.HeightArrayLock

    UpdateDebugPrimitive(CommandList, IDebugPrimitive)

    public override void UpdateDebugPrimitive(CommandList commandList, IDebugPrimitive debugPrimitive)
    Parameters
    Type Name Description
    CommandList commandList
    IDebugPrimitive debugPrimitive
    Overrides
    ColliderShape.UpdateDebugPrimitive(CommandList, IDebugPrimitive)

    Inherited Members

    ColliderShape.DebugScaling
    ColliderShape.Type
    ColliderShape.LocalOffset
    ColliderShape.LocalRotation
    ColliderShape.UpdateLocalTransformations()
    ColliderShape.PositiveCenterMatrix
    ColliderShape.NegativeCenterMatrix
    ColliderShape.cachedScaling
    ColliderShape.Scaling
    ColliderShape.Is2D
    ColliderShape.Description
    ColliderShape.CreateDebugPrimitive(GraphicsDevice)
    ColliderShape.DebugPrimitiveMatrix

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation