Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    PhysicsColliderShape Class

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

    [DataContract]
    [ContentSerializer(typeof(DataContentSerializer<PhysicsColliderShape>))]
    [DataSerializerGlobal(typeof(CloneSerializer<PhysicsColliderShape>), null, DataSerializerGenericMode.None, false, false, Profile = "Clone")]
    [DataSerializerGlobal(typeof(ReferenceSerializer<PhysicsColliderShape>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
    public class PhysicsColliderShape : IDisposable
    Name Description
    Constructors
    PhysicsColliderShape()
    PhysicsColliderShape(IEnumerable<IAssetColliderShapeDesc>)
    Properties
    Descriptions

    Used to serialize one or more collider shapes into one single shape Reading this value will automatically parse the Shape property into its description Writing this value will automatically compose, create and populate the Shape property

    Shape
    Methods
    Dispose()
    New(IAssetColliderShapeDesc[])
    | Improve this Doc View Source

    Constructors


    PhysicsColliderShape()

    public PhysicsColliderShape()

    PhysicsColliderShape(IEnumerable<IAssetColliderShapeDesc>)

    public PhysicsColliderShape(IEnumerable<IAssetColliderShapeDesc> descriptions)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<IAssetColliderShapeDesc> descriptions
    | Improve this Doc View Source

    Properties


    Descriptions

    Used to serialize one or more collider shapes into one single shape Reading this value will automatically parse the Shape property into its description Writing this value will automatically compose, create and populate the Shape property

    [DataMember]
    public List<IAssetColliderShapeDesc> Descriptions { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<IAssetColliderShapeDesc>

    Shape

    public ColliderShape Shape { get; }
    Property Value
    Type Description
    ColliderShape
    | Improve this Doc View Source

    Methods


    Dispose()

    public void Dispose()

    New(IAssetColliderShapeDesc[])

    public static PhysicsColliderShape New(params IAssetColliderShapeDesc[] descriptions)
    Parameters
    Type Name Description
    IAssetColliderShapeDesc[] descriptions
    Returns
    Type Description
    PhysicsColliderShape

    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