Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    CapsuleColliderShape Class

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

    public class CapsuleColliderShape : ColliderShape, IDisposable
    Name Description
    Constructors
    CapsuleColliderShape(Boolean, Single, Single, ShapeOrientation)

    Initializes a new instance of the CapsuleColliderShape class.

    Fields
    Length
    Orientation
    Radius
    Properties
    Scaling
    Methods
    CreateDebugPrimitive(GraphicsDevice)
    | Improve this Doc View Source

    Constructors


    CapsuleColliderShape(Boolean, Single, Single, ShapeOrientation)

    Initializes a new instance of the CapsuleColliderShape class.

    public CapsuleColliderShape(bool is2D, float radius, float length, ShapeOrientation orientation)
    Parameters
    Type Name Description
    System.Boolean is2D

    if set to true [is2 d].

    System.Single radius

    The radius.

    System.Single length

    The length of the capsule.

    ShapeOrientation orientation

    Up axis.

    | Improve this Doc View Source

    Fields


    Length

    public readonly float Length
    Field Value
    Type Description
    System.Single

    Orientation

    public readonly ShapeOrientation Orientation
    Field Value
    Type Description
    ShapeOrientation

    Radius

    public readonly float Radius
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Properties


    Scaling

    public override Vector3 Scaling { get; set; }
    Property Value
    Type Description
    Vector3
    Overrides
    ColliderShape.Scaling
    | 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.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