Struct CapsuleGeometryAuthoring | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct CapsuleGeometryAuthoring

    A structure for storing authoring data for a capsule shape. In contrast to the CapsuleGeometry struct in the run-time, this structure permits storing stable orientation values, as well as height values that can be retained when the source data are defined with respect to a non-uniformly scaled object.

    Namespace: Unity.Physics.Authoring
    Syntax
    [Serializable]
    public struct CapsuleGeometryAuthoring : IEquatable<CapsuleGeometryAuthoring>

    Properties

    Center

    The local position offset of the capsule.

    Declaration
    public float3 Center { get; set; }
    Property Value
    Type Description
    Unity.Mathematics.float3

    Height

    The height of the capsule. It may store any value, but will ultimately always be converted into a value that is at least twice the radius.

    Declaration
    public float Height { get; set; }
    Property Value
    Type Description
    Single

    Orientation

    The local orientation of the capsule. It is aligned with the forward axis (z) when it is identity.

    Declaration
    public quaternion Orientation { get; set; }
    Property Value
    Type Description
    Unity.Mathematics.quaternion

    Radius

    The radius of the capsule.

    Declaration
    public float Radius { get; set; }
    Property Value
    Type Description
    Single

    Methods

    Equals(CapsuleGeometryAuthoring)

    Declaration
    public bool Equals(CapsuleGeometryAuthoring other)
    Parameters
    Type Name Description
    CapsuleGeometryAuthoring other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Extension Methods

    CapsuleGeometryAuthoringExtensions.ToRuntime(CapsuleGeometryAuthoring)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023