Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SphereColliderShapeDesc Class

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

    [ContentSerializer(typeof(DataContentSerializer<SphereColliderShapeDesc>))]
    [DataContract("SphereColliderShapeDesc")]
    [Display(50, "Sphere", null)]
    public class SphereColliderShapeDesc : IInlineColliderShapeDesc, IAssetColliderShapeDesc, IColliderShapeDesc
    Name Description
    Fields
    Is2D
    LocalOffset
    Radius
    Methods
    CreateShape()
    Match(Object)
    | Improve this Doc View Source

    Fields


    Is2D

    [DataMember(10)]
    public bool Is2D
    Field Value
    Type Description
    System.Boolean

    LocalOffset

    [DataMember(30)]
    public Vector3 LocalOffset
    Field Value
    Type Description
    Vector3

    Radius

    [DataMember(20)]
    public float Radius
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Methods


    CreateShape()

    public ColliderShape CreateShape()
    Returns
    Type Description
    ColliderShape

    Match(Object)

    public bool Match(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    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