Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SphereColliderShape Class

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

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

    Initializes a new instance of the SphereColliderShape class.

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

    Constructors


    SphereColliderShape(Boolean, Single)

    Initializes a new instance of the SphereColliderShape class.

    public SphereColliderShape(bool is2D, float radiusParam)
    Parameters
    Type Name Description
    System.Boolean is2D

    if set to true [is2 d].

    System.Single radiusParam
    | Improve this Doc View Source

    Fields


    Radius

    public readonly float Radius
    Field Value
    Type Description
    System.Single
    | 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