Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    BoxColliderShape Class

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

    public class BoxColliderShape : ColliderShape, IDisposable
    Name Description
    Constructors
    BoxColliderShape(Boolean, Vector3)

    Initializes a new instance of the BoxColliderShape class.

    Fields
    BoxSize
    Methods
    CreateDebugPrimitive(GraphicsDevice)
    | Improve this Doc View Source

    Constructors


    BoxColliderShape(Boolean, Vector3)

    Initializes a new instance of the BoxColliderShape class.

    public BoxColliderShape(bool is2D, Vector3 size)
    Parameters
    Type Name Description
    System.Boolean is2D

    If this cube is a 2D quad

    Vector3 size

    The size of the cube

    | Improve this Doc View Source

    Fields


    BoxSize

    public readonly Vector3 BoxSize
    Field Value
    Type Description
    Vector3
    | Improve this Doc View Source

    Methods


    CreateDebugPrimitive(GraphicsDevice)

    public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)
    Parameters
    Type Name Description
    GraphicsDevice device
    Returns
    Type Description
    MeshDraw
    Overrides
    ColliderShape.CreateDebugPrimitive(GraphicsDevice)

    Inherited Members

    ColliderShape.DebugScaling
    ColliderShape.Dispose()
    ColliderShape.Type
    ColliderShape.LocalOffset
    ColliderShape.LocalRotation
    ColliderShape.UpdateLocalTransformations()
    ColliderShape.PositiveCenterMatrix
    ColliderShape.NegativeCenterMatrix
    ColliderShape.cachedScaling
    ColliderShape.Scaling
    ColliderShape.Is2D
    ColliderShape.Description
    ColliderShape.CreateUpdatableDebugPrimitive(GraphicsDevice)
    ColliderShape.UpdateDebugPrimitive(CommandList, IDebugPrimitive)
    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